Gravity Analog 20A current sensor - SEN0214 - ERROR

userHead andrew.babbage 2023-09-17 22:11:40 724 Views2 Replies

Hi,

 

I recently purchased SEN0214,

 

the only code i could find was from here: 

 

https://wiki.dfrobot.com/20A_Current_Sensor_SKU_SEN0214

 

however there seems to be a few errors lines 50, 53 and 54

 

Maybe this is i +1?

 

see attached photos of setup, arduino mega , connected to a small dc motor running on 12v, connected sen0214 to AO. however nothing is showing on the serial port? have reconfigured to  Serial.begin(9600);

 

any pointers?

 

 

 

 

 

2023-09-23 01:29:40

Yes you are right. The blank in the sample code is the “+”. And we have update in our wiki.

But I just noticed that you connect the positive pin to the AREF or D13?

Could you try to connect the positive pin to 5V on your Mega?

userHeadPic Yeez_B
andrew.babbage wrote:

the photo is an illusion pins are going to 5v, gnd, and A0. your updated code is now working. Thank you. Can this module SEN0214 monitor voltage as well? 

2023-10-02 22:58:28
1 Replies