Video sponsored by PCBWay. Visit PCBWay and get $5 off from your first order:
www.pcbway.com/setinvite.aspx...
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:
www.instructables.com/Custom-...
Tools and materials used in the video:
Arduino Nano - s.click.aliexpress.com/e/_Aey8wk
AC Dimmer Module - s.click.aliexpress.com/e/_A2DIQ4
Mini Breadboards - s.click.aliexpress.com/e/_A69aO4
Jumper Wires - s.click.aliexpress.com/e/_AFkya8
Alternative links on Banggood:
Arduino Nano - www.banggood.com/custlink/3GG...
WiFI Triac Dimmer - www.banggood.com/custlink/3D3...
Mini breadboard - s.click.aliexpress.com/e/_ol4...
Jumper Wires - www.banggood.com/custlink/Dvm...
Support my work on Patreon so I can continue producing free content and tutorials!
/ taste_the_code
My recording gear:
GT10 Pro 5G Android Phone - s.click.aliexpress.com/e/_oDn...
Dragon Touch 4K Action Camera - s.click.aliexpress.com/e/_mrc...
USB Condenser Microphone - s.click.aliexpress.com/e/_mq5...
Tripod - s.click.aliexpress.com/e/_ooa...
Phone tripod mount - 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: www.tastethecode.com
Facebook: / tastethecode
Instagram: / taste_the_code
Twitter: / taste_the_code
Get exclusive Taste The Code t-shirts and merch at
teespring.com/taste-the-code
Click on the link below to get two months of free premium access to Skillshare and start learning today!
skl.sh/37LnRua
Get $50 off your order on hosting for all of your website needs and learning projects on Dreamhost!
www.dreamhost.com/r.cgi?24057...
9 июл 2021