
kamaroman68
USA
Asked
— Edited
So Im wondering if the ezb4 will have a command for pulse output. I need 5vdc pulses to the tune of some 20,000 pulses. Less pulses , less travel. More pulses ,more travel. Im not concerned about resolution. Or would I need to write a script and loop the script the required amount of times for the required amount of travel. Will the EZB 4 put out 5vdc out of any of its ports? I will be powering everything from 1 sla battey 12vdc. I think I read that the ezb4 will only put out the same voltage as applied to the input side (12vdc). Thanks Chris
Need to clarify..... looking for sinking or sourcing outputs, either will work in my case. Thanks Chris
Yes, v4 outputs input voltage on its power pins. In other words, you use a 12v battery with the v4, then 12v will come out the power pins on the ezb. You will need an inline voltage regulator if you want 5v...
I believe he is asking two questions.
If the ez-b v4 is supplied by a 12VDC sla battery what will the voltage of the ez-b v4 signal pins be?
Instead of the normal ez-b pulse width modulation can the ez-b be made to output a pulses? It sounds like he is looking to control some kind of stepper as he says " less pulses - less travel".
For sure you can generate pulse using a script. There are examples in the forum of controlling stepper motors with the ez-b through scripts. I don't know about generating a frequency controlled signal using the ez-b with any accuracy.
Ez-robot will he selling an inline 5v voltage refulator. Haven't announced price yet, but if you ordered the developer's kit it will include one.
Re: pulses. Are describing PWM? If so, yes, the EZ-B can transmit pwm. If something else, your idea of scripting pulses would probably work, but I'll let someone from EZ Robot confirm.
Alan
There is mention of a pullup resistor on the digital outputs in some of the hardware tutorials. This would give you an output voltage equivalent to the supply voltage (12V) as long as you keep the load on that output very light. If you draw much current on the output you are going to see a lower voltage. This voltage drop will be a function of ohms law. V=IR where R is the resistance of the pullup resistor. I doubt you can get much current out of these outputs so this may be moot, however it is suggested that you can drive LEDs from these outputs. And your run of the mill LEDs typically draw 5-20mA. I'm waiting on a reply in another thread as to what the pullup resistance is on V4 as well as the rated max output current. As for the states of the output you would get a strong sink for logic low and a weaker pullup from the resistor for logic high with this configuration.
I think what you want is the PWM control.
So to try and clarify, I dont think it will be PWM. This type of unit is normally used with a plc and a high speed out put card. It generates 5vdc pulses. This 5vdc fires an opto isolator in the chopper drive. I neeed to generate 5vdc pulses in an "up" mode and a "down" mode. I can simply use a 840 ohm resistor to drop the 12vdc down to the required 5vdc so that wont be the issue. I will see if i can get the specs from the drive and post them as that may be of more help in understanding. Thanks Chris
That's what PWM does - except you can specify the length of each pulse in PWM. If you need more control, I think you'll need to whip up a 555 timer circuit for the specific speed and pulse length. 20,000 per second can be achieved with the PWM, I feel. You'll need to oscilloscope to tune the speed. Otherwise, 555 timer is your friend