Go Down

Topic: Grove relay works with UNO shield but not with MKR shield (Read 387 times) previous topic - next topic

mulryj

I am using relays to power 120 volt AC devices. The relays I have always work using the "blink" code with the UNO, but not with my MKR 1010. These are Grove relays with Grove shields on each board. I imagine my issue is voltage as I can measure my UNO signal at 5 volts and the MKR signal at 3.19 volts.

Some relays work, some work for a few sessions but after using do not work again. Is there anything I'm missing?

ballscrewbob

The relays require thier OWN psu with a common ground.

3.3 volts is certainly not enough to work most of the common relay modules and even using a UNO's power may be inadequate long term.

The thing you are missing is CURRENT as well as voltage.

We cannot see your relays specs so the answer is only a best guess scenario

Could you also take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.



It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

mulryj

I understand that. But then why does the Arduino store sell Grove relays with a Grove shield? Shouldn't they be compatible and if not shouldn't they mention in the product description that the relays might not work?

ballscrewbob

#3
Sep 18, 2020, 06:29 am Last Edit: Sep 18, 2020, 06:38 am by ballscrewbob
Please link me to the product you are using ?

nvm.


See the blue screw connectors for the external voltage supplies.
They are there for a reason.

Almost any Arduino is not fully capable of supplying the current and or voltage needed for most relays.
The specs for your board will confirm that.

If you use the SEARCH facility (upper right of the page) and type in relay you will find many posts to back that up and often how they fixed the issue with an external supply of the correct current / voltage capacity.

ANY relay is compatible with Arduino if you know how to set them up and understand the specifications of the arduino and the relay.





It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

mulryj

https://store.arduino.cc/usa/arduino-mkr-connector-carrier

https://store.arduino.cc/usa/environmental-monitor-bundle

https://store.arduino.cc/usa/grove-relay

These are all the components I am using. They are all purchased from the Arduino Store. And the relays are not working with this setup. I have an adequate power supply and have tried several others to send the 3.3 V signal. If I am not missing anything I will explore stepping the voltage up artificially.

 

ballscrewbob

As I said it is not always just the voltage but current.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

mulryj

Here is my setup with all Arduino store parts


mulryj

I am supplying the shield with 12 volts. The shield is grove. The relay is grove. The board is mkr 1010. Any suggestions?

mulryj

If I jump the 5V source on the Grove shield to the signal pin on the relay it triggers. If I let the digital.Write command set the D3 pin to HIGH the relay does not trigger.

Again, if I use an UNO with a Grove shield the relay triggers

ballscrewbob

It could be that you are missing a common ground ?

Taking a ground from your PSU to a ground pin on your Arduino would be a quick test you can perform.




It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

mulryj

It is grounded.

I found out today that I can take a jumper wire from the top shield in the picture on the digital pin and when I touch it to the signal pin on the relay it activates properly. There is, however, enough power to deactivate the relay armature using only the Grove connector after activating directly from the digital pin.

Using the Grove shield quick connect does not supply enough voltage. I have messaged Seeed who makes the shield as I'm sure it is a product defect. I have two separate MKR 1010 board and two separate Grove shields that are both exhibiting the same behavior.

The Grove pins measure 3.19 volts and the header pins measure 3.25. I can direct wire the Vcc, ground, and digital pins to the relay and it works.

mulryj

Or is the issue that my MKR is only putting out 3.25 volts? Should it be closer to 3.3?

mulryj

I have grounded my power supply to the common from the street and the ground of my house. the shields link the ground appropriately. I even jumped the ground according to the previous comment... no luck.

JCA34F

The MKR's output current is only 2mA on some of the pins, maybe not enough to trigger the relay, that's a problem trying to run devices designed for 5V on the puny output from 3.3V MCUs.

mulryj

And that would make sense because the MKR 1010 is limited to 20 mA. But I just tried the same setup with a GSM 1400 board which can output 100 mA. Same phenomenon. I can't activate the solenoid through the Grove shield. But if I jump the digital pin to the signal wire of the Grove relay, it activates. The voltage for the GSM 1400 at the relay connection is even lower than the MKR 1010. About 3.06 volts.

Go Up