Популярное

How to make an Arduino custom I2C slave sensor/device

127 Просмотры
Размещено
Video sponsored by PCBWay. Visit PCBWay and get $5 off from your first order:
https://www.pcbway.com/setinvite.aspx?inviteid=81304

In this video, I'm exploring the idea of having your own I2C slave devices and sensors where a helper Arduino is used just for the sensor and the main controller does all of the control logic.

In my case, the slave I2C device is a dedicated controller for a motor speed controller (AC dimmer) that monitors the AC zero-crossing point and it listens on a specific I2C address for the speed at which the motor should run.

By using two separated Arduino Nanos, I can utilize the interrupt pins on both controllers where the one on the slave device will monitor the zero-crossing signal and the other one can be used for interfacing with the UI through a rotary encoder.

The Arduino code used can be found on the Instructable for the project:
https://www.instructables.com/Custom-I2C-Slave-Sensordevice-With-Arduino/

Tools and materials used in the video:
Arduino Nano - https://s.click.aliexpress.com/e/_Aey8wk
AC Dimmer Module - https://s.click.aliexpress.com/e/_A2DIQ4
Mini Breadboards - https://s.click.aliexpress.com/e/_A69aO4
Jumper Wires - https://s.click.aliexpress.com/e/_AFkya8


Alternative links on Banggood:
Arduino Nano - https://www.banggood.com/custlink/3GGyZlAOeL
WiFI Triac Dimmer - https://www.banggood.com/custlink/3D3RLnVgpy
Mini breadboard - https://www.banggood.com/custlink/mG3yZasO60
Jumper Wires - https://www.banggood.com/custlink/DvmyjuulwN


Support my work on Patreon so I can continue producing free content and tutorials!
https://www.patreon.com/taste_the_code


My recording gear:
Samsung A71 - https://s.click.aliexpress.com/e/_dX26Gm7
SJ400 Action camera - https://s.click.aliexpress.com/e/_ssJRaL
USB Condenser Microphone - https://s.click.aliexpress.com/e/_sMcKML
Tripod - https://s.click.aliexpress.com/e/_stDAGL
Phone tripod mount - https://s.click.aliexpress.com/e/_s9WaiJ


How to make an Arduino custom I2C slave sensor/device
#arduino #i2c #sensors #custom #tastethecode


Main Site and blog: https://www.tastethecode.com
Facebook: https://www.facebook.com/tastethecode/
Instagram: https://www.instagram.com/taste_the_code/
Twitter: http://twitter.com/taste_the_code


Get exclusive Taste The Code t-shirts and merch at
https://teespring.com/taste-the-code


Click on the link below to get two months of free premium access to Skillshare and start learning today!
https://skl.sh/37LnRua


Get $50 off your order on hosting for all of your website needs and learning projects on Dreamhost!
https://www.dreamhost.com/r.cgi?2405711/promo/dreamsavings50/
Категория
Ардуино
Комментариев нет.