I assume that the P9242 runs internally at 3.3V. The values 0圎1 and 0圎2 are the same as 0圆1 and 0圆2. The maximum is 127, there is no higher address. The code below shows an example of what we have tried, but all that is printed to the serial monitor is 255, and we aren’t sure why.Īny and all help would be great! Thanks! #include Attached is the image from the data sheet of the register values, and some information about the registers and addresses.įor example, if nothing was being charged, we wanted to see the value of the idle state which is function 1. ![]() We have a connection going from the SDA of the P9242-R evaluation board we are using, going into pin 27 on our breadboard, which would be the SDA pin.īasically we are trying to read from the state register. We are using an Arduino Uno to program an ATMega328P microcontroller that will go onto our breadboard. ![]() We have an evaluation board which is basically a wireless power transfer pad, and will send out power when an object is present to charge. ![]() First time trying to use an I2C device to read a value from a register.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |