ArduinoGeneral

RGB LED Strip Shield doesn't work with SAMD/Arduino M0 board

userHead dfrobot 2016-09-03 01:16:02 5218 Views19 Replies
I just bought an DfRobot RGB LED Strip v1.0 shield and to my surprise it wasn't work well with my Arduino M0 board.

The Red light doesn't open (after swapping with Blue and Green port I confirmed that the red light strip is working fine, so it was the port). PWM doesn't work which is big deal because that is the main purpose why I bought it.

The samples were taken from AVR/Uno board which is 8bit (255) but in this case its a 10bit resolution (1024). Do I have to modify something in the code or/and change the pin also?
2016-09-16 02:16:45 Exactly what I thought, but can I still hook this up into the M0 board by just using a Logic Level shifter like ('', ('') ? '' : 'https://www.adafruit.com/product/395') to drive the PWM? userHeadPic dfrobot
2016-09-16 02:16:45 Exactly what I thought, but can I still hook this up into the M0 board by just using a Logic Level shifter like ('', ('') ? '' : 'https://www.adafruit.com/product/395') to drive the PWM? userHeadPic dfrobot
2016-09-15 01:15:46 When you connect a external power source of 12V to the shield, the working voltage of LED is enough, it will turn the LED on. But the voltage output signal of M0 is 3.3V, this can lead to PWM cant adjust color. Accroding to the schematic, we must connect 5V to the PWM pin, then we will be able to adjust color. userHeadPic Wendy.Hu
2016-09-15 01:15:46 When you connect a external power source of 12V to the shield, the working voltage of LED is enough, it will turn the LED on. But the voltage output signal of M0 is 3.3V, this can lead to PWM cant adjust color. Accroding to the schematic, we must connect 5V to the PWM pin, then we will be able to adjust color. userHeadPic Wendy.Hu
2016-09-14 17:04:35 Sorry, I don't understand. You mean the voltage provided by PWM pins of Arduino M0 (3v) is not enough to drive your RGB LED strip shield (5v like the Uno)?

Because, there was an external power source of 12v 2 amp connected to the RGB LED strip shield. So its impossible that the LED strip itself is underpowered or under voltage.

Thanks!
userHeadPic dfrobot
2016-09-14 17:04:35 Sorry, I don't understand. You mean the voltage provided by PWM pins of Arduino M0 (3v) is not enough to drive your RGB LED strip shield (5v like the Uno)?

Because, there was an external power source of 12v 2 amp connected to the RGB LED strip shield. So its impossible that the LED strip itself is underpowered or under voltage.

Thanks!
userHeadPic dfrobot
2016-09-13 22:13:19 Sorry, I overlooked you are using Arduino M0. Yes, the working voltage of M0 is 3.3V, the uno is 5V, and the RGB shield is also 5V. So you have to use the uno as the controller. According to your description, probably the voltage privided to LED is not enough. userHeadPic Wendy.Hu
2016-09-13 22:13:19 Sorry, I overlooked you are using Arduino M0. Yes, the working voltage of M0 is 3.3V, the uno is 5V, and the RGB shield is also 5V. So you have to use the uno as the controller. According to your description, probably the voltage privided to LED is not enough. userHeadPic Wendy.Hu
2016-09-13 09:05:26 I don't think there's a problem with the shield. There are no other sensors connected on the said pins and yes I used the exact sample code in your wiki. I also don't think there's a problem with my Arduino M0 because I tried moving the RGB shield on my 4 other Arduino M0 boards but they all have the same problem except on my Arduino Uno board which perfectly fades in and out as oppose to the M0 boards that just switches colors but cannot fades. So somehow, there's something different in PWM between ARM based and AVR based Arduino boards in regards to your RGB LED Strip shields. userHeadPic dfrobot
2016-09-13 09:05:26 I don't think there's a problem with the shield. There are no other sensors connected on the said pins and yes I used the exact sample code in your wiki. I also don't think there's a problem with my Arduino M0 because I tried moving the RGB shield on my 4 other Arduino M0 boards but they all have the same problem except on my Arduino Uno board which perfectly fades in and out as oppose to the M0 boards that just switches colors but cannot fades. So somehow, there's something different in PWM between ARM based and AVR based Arduino boards in regards to your RGB LED Strip shields. userHeadPic dfrobot
2016-09-13 01:15:47 The RGB LED strip you are using is no problem. Did you do a test according to our wiki? And did you connect some devices on 9 pin and 11 pin? 9,10,11 pin cant be used for other purpose when they are used for RGB LED.

If you did the above all, probably the shield is defective. Under the warranty, you are entitled to require a replacement.
userHeadPic Wendy.Hu
2016-09-13 01:15:47 The RGB LED strip you are using is no problem. Did you do a test according to our wiki? And did you connect some devices on 9 pin and 11 pin? 9,10,11 pin cant be used for other purpose when they are used for RGB LED.

If you did the above all, probably the shield is defective. Under the warranty, you are entitled to require a replacement.
userHeadPic Wendy.Hu
2016-09-08 20:38:04 Hi, Thanks for replying. I am using a common anode 5060 RGB LED strip which is about half a meter of length. Attached to the shield is a 12v 2A power supply. userHeadPic dfrobot
2016-09-08 20:38:04 Hi, Thanks for replying. I am using a common anode 5060 RGB LED strip which is about half a meter of length. Attached to the shield is a 12v 2A power supply. userHeadPic dfrobot
2016-09-08 00:57:43 Hi

May I know whats the LED you are using?
userHeadPic Wendy.Hu
2016-09-08 00:57:43 Hi

May I know whats the LED you are using?
userHeadPic Wendy.Hu
2016-09-03 01:36:17 Update:

According in here http://www.arduino.org/products/boards/arduino-m0#board_input_output
Note1 The pins 4 and 10 can not be used simultaneously as PWM. So I just remove the jumper in the shield to disable the built-in IR :( and now the Red strip is working.

PWM is still doesn't work (no fading) :(
userHeadPic dfrobot
2016-09-03 01:36:17 Update:

According in here http://www.arduino.org/products/boards/arduino-m0#board_input_output
Note1 The pins 4 and 10 can not be used simultaneously as PWM. So I just remove the jumper in the shield to disable the built-in IR :( and now the Red strip is working.

PWM is still doesn't work (no fading) :(
userHeadPic dfrobot
2016-09-03 01:16:02 I just bought an DfRobot RGB LED Strip v1.0 shield and to my surprise it wasn't work well with my Arduino M0 board.

The Red light doesn't open (after swapping with Blue and Green port I confirmed that the red light strip is working fine, so it was the port). PWM doesn't work which is big deal because that is the main purpose why I bought it.

The samples were taken from AVR/Uno board which is 8bit (255) but in this case its a 10bit resolution (1024). Do I have to modify something in the code or/and change the pin also?
userHeadPic dfrobot