Hello everyone ,
i'm working a smart meter project with EV-ADE9153ASHIELDZ , my IC was working well with the arduino UNO , but when i tried to move to Teensy LC , i found that i should disconnect the 5 V SPI jumper and connect a 3 V SPI jumper so i did it
but my ADE no longer works and the diodes do not light up when i connect the SPI port to the Teensy
You really need to show your setup. Can you measure 3v? are you supplying 3v? The 3v I think is supplied by the esp8266 socket. you will need to bring over 3.3v
hello dave.smith thank you for your answer , yes thes Teensy LC deliver 3.3v and i can measue it ,
i powered the Shieldz with an external 5V source , but the i get no response from the ADE9153A when i configured the teensyLC as
i used the example code https://github.com/analogdevicesinc/arduino/blob/master/Arduino%20Uno%20R3/examples/ADE9153A_examples/ADE9153AAPI_Test/ADE9153AAPI_Test.ino
and just change the slavePin to 10
You need to supply the shield with 3v3 the 5v is only for 5v there is no onboard 3v3 reg. Connect a wire from the teensy to the 3v3 on the shield. You can verify this by measuring the 3v3 on the shield when powered with 5v. There will be no 3v3. IF the esp8266 was installed it supplies the 3v3 to the board. Check for 3v3 as indicated below. This is were you should connect 3v3 from the teensy.
when i supplied the shield with 3.3V on the 3.3V in of the shield it doesn't work
but when i connect the 3V3 to the 5v in of the shield it the diodes light up ( but without any result on the response from SPI )
It is my first time with SPI and i'm confused , does the connection with only SPI can supply power to the ADE ?
do i have to do this connection even if i'm not going to use the pins of the esp8266 ( juste connection on the Pin for arduino ) ??
Hi the 3v3 jumper determines the logic level and power to the isopower parts. so it looks like you have now powered the board up. make sure both isoparts have power to them.
The other jumper r49 r51 r67 and r68 determine in the spi goes to the esp8266 socket and /or the arduino.
Since you are using neither the esp8266 or the arduino uno you need to ohm out the spi lines and reset line from teensy to the isolators. You need to make sure the line are going where you want.
use a scope to see if you have spi activity into and out of the isolator (do this without the high voltage connected.)