ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

#9  

rb550f Thanks for the hbridge idea. I can try that but it only cost $2.00 for the Mosfet board.

I think you have a good idea though.

PRO
USA
#10  

@Ellis,

Let's start from the begin.

If you add PWM slider:

User-inserted image

and play with the control can you switch on, off, dim the lights ?

#11  

@Ellis - right on for what PTP said. When troubleshooting, you need to think about what is the simplest form that will function.

Using a new circuit with LED controls and script you have not used before those introduce several different points where things "could" go wrong.

So PTP and I were trying to suggest ways to bring the complexity down to something simple - which is to ask the question "Does your circuit work with the PWM slider to control the lights?" - If not we need to look at your circuit and connections.

If it does work we can move onto seeing why the PWM circuit is not reacting to the sound servo PC control.

Does that make sense?

#12  

Are you able to turn on the leds with just a port to on?. If not you might need to use a ttl level shifter on your signal input on your mosfet board. I have used these on relay boards that would not work with ezb logic level. They cost less than $2 on Ebay.

PRO
USA
#13  

@Ellis,

I share Justin's opinion you need to go back to the begin and troubleshoot the wiring, component and only then the software. Rick's script works.

Quote:

I have been working on this for around a week and still do not have the system working. Any ideas?
It depends how valuable is your time and how patient you are.

You spent a couple bucks in a cheap Chinese supplier (nothing against the Chinese) the problem is the lack of support, lack of documentation and misleading information.

User-inserted image

User-inserted image

So no support hein !?

Looking to the PCB: 1 x mosfet, 2 x resistors and maybe a led.

this is my guess: 1 resistor is used with the led, the other one must be pull down There is no optocoupler to separate the input/output, so a common ground is used. There isn't a amplifier transistor so the Mosfet gate uses the EZB signal (3.3v) to drive.

This is a simple diagram:

User-inserted image

It's obvious you share a common ground and you don't need EZB's VCC.

The next question is to know the gate to source threshold voltage at which the mosfet turns on.

looking the specs: https://www.vishay.com/docs/91017/91017.pdf

relevant info:

User-inserted image

between 2.0-4.0. EZB signal is 3.3v

There are other factors like temperature, component quality, tolerance etc I don't gamble so i would say that 3.3v is not enough to drive the Mosfet.
Maybe you can get lucky.

If you want to drive the mosfet you will need to amplify/convert the signal

  1. using a transistor or
  2. Logic Level circuit 3.3v to 5v https://www.robotshop.com/en/logic-level-converter-bidirectional.html like rb550f mentioned.
PRO
USA
#14  

another detail:

User-inserted image

With 4.5V you can get current just a bit higher than 1A. I can't guess how much current you can drive with 3.3v but it will be lower. This is not an issue If your lights need less than 1A.