![]() The serial baud rate is already set to 9600 and the Serial Monitor tool functions correctly in other sketches I’ve used with this same value so I think we’re good here. The i2c communication seems to be successfully established between my Leonardo Arduino and the 8 channel current monitor board so I suspect that the issue is likely with how I’m trying to call the Internal Register Address or Data values for each current probe on this board. This must be defined (or assumed) in the sketch already. ![]() ![]() Given that the i2c scanner sketch I tried earlier correctly probed the 8 channel current monitor board with an i2c Device Address of 0x2A, I assume that I do not need to define the SCL and SDA pins in the sketch. If you have any ideas or suggestions for next steps, I’m all ears. My Leonardo recognized the device at the expected address of 0x2A! 20:33:06.370 -> Scanning.Ģ0:33:06.370 -> I2C device found at address 0x2A ! On a positive note, I did confirm that I have the current monitor board correctly connected via the Leonardo’s i2c interface using a i2c scanner sketch I found via a Google search… Perhaps this needs to be set somewhere in the sketch? The Leonardo i2c pins are Digital 2 (SDA) and Digital 3 (SCL). I suspect the sketch might not be directly compatible with the Leonardo Arduino board without some minor code changes (only guessing here). I assume even if there was no current being detected, the output would still show the “ Channel :” and “ Current :” texts but with null values. Thank you in thanks for your help! I loaded the sketch found on your GitHub page ( PECMAC/Arduino/PECMAC125A.ino) but was not able to see any output on the serial monitor window. Any direction you might be able to point me in would be greatly appreciated. If there is a topic on this forum explaining the use of a i2c current sensor with an Arduino Leonardo, I must have missed it. I’m hoping someone might be able to point me to a simple Arduino sketch which will allow me to monitor the numeric value of at least a single channel on the current monitor board. The board is powered by its own 12 volt power adapter so I don’t believe I need the +5 volt connection (please tell me if I’m mistaken). I have absolutely no experience with i2c however, I believe I’ve done enough research to correctly connect the 8-Channel Current Monitor board to my Arduino’s Ground, SDA, and ACL pins. I hope to capture each of the 8 current sensor values via the i2c Arduino interface and display them on these virtual gauges. So far, I’ve successfully displayed the value of each analog input using a 10k potentiometer in place of an actual current sensor.įor simplicity, rather than purchasing current transformers for each analog input and building the necessary circuits to interface them with the Arduino, I’ve instead purchased an “ 8-Channel 20-Amp AC Current Monitor with I2C Interface” board from NCD. Each current value is nicely displayed on an array of dynamic virtual gauges written in AJAX hosted on a small webpage stored on the microSD card of the Ethernet shield. I use an Ethernet Shield 2 to allow me to remotely monitor the current levels of each input. I’ve been working on a current monitoring project using the analog inputs of the Arduino Leonardo. ![]() Hey folks, first post here to please go easy on me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |