January 26, 2017 at 5:47 pm #20617
Can I get a 5V signal from the ebb board (or elsewhere) that corresponds to either pen up or pen down?New Axidraw woks fine, by the way.January 26, 2017 at 5:57 pm #22820
Not directly; the EBB operates at an internal logic-level voltage of 3.3 V, and its I/O pins are just below this. If you need 5 V, you’ll need to provide an external logic-level shifter.January 26, 2017 at 6:06 pm #22821
OK, that’s easy enough to do.Is there a 3.3V signal that corresponds to pen up or down?That would get me 99% of the way to my goal.January 26, 2017 at 6:33 pm #22822
There is not, but you can add one. The EBB has four three pin “servo outputs” available. The lowest of them (B1) is used for the pen lift servo. The other three (B0, B2, B3) are available for your use.
What you will need to do is to modify your software to add the command to turn the output on or off at the same time as you raise or lower the pen. If you’re using the standard Inkscape-based software, then you’ll want to open up and edit the script called “ebb_motion.py” in your Inkscape extensions directory. In that file, look for the sendPenUp and sendPenDown command definitions. There, you can add another line to send the I/O pin on or off command. Depending on what you’re actually doing, you may prefer to replace the pen up/down movements with just the pin on/off commands.
You might want to look at the “sendDisableMotors” command definition to see how we set up a one-liner command with no variables, as
ebb_serial.command( portName, 'EM,0,0r').
For the actual command to send, look at the PO command in the EBB command set documentation:http://evil-mad.github.io/EggBot/ebb.html#PO , and note that you will need to send a PD command beforehand.
You may also want to refer to this discussion about adding a laser control: http://forum.evilmadscientist.com/discussion/comment/1992January 26, 2017 at 8:14 pm #22823
Thank you very much.I was thinking that I could simply hijack the output to the servo, but wasn’t sure just what was sent to it.Replacing pen up/down with pin on/off would be great, if that gets me 3.3v/0v on the pin.In that case, all I would need to do would be to convert the 3.3v level to 5v.January 26, 2017 at 8:18 pm #22824
Oops, should have read your references before writing my response.It looks like everything is there.ThanksJanuary 26, 2017 at 8:20 pm #22825
The servo control signal is not an “on/off” signal– it’s a command to move to a particular angle. If you need an on/off, I’d recommend putting it on a second I/O port, just so that you can always switch back and forth with software alone.January 26, 2017 at 8:25 pm #22826
So, take it off of B0, B2 or B3, while leaving the pen up/down servo on B1?That sounds fine.Thanks again.January 26, 2017 at 8:36 pm #22827
Yes, that would be best practice.January 29, 2017 at 6:19 pm #22828
Well, it’s not exactly your issue, but you probably know the answer:All I need to accomplish is to close a switch (that carries 9vdc) when a pin on the EBB board goes high, and open it when it goes low. (as discussed above)That sounds like a job for a relay.I see stuff about triggering a 5v relay from a 3v signal, but why introduce extra stuff if there is a simple solution?I, however, don’t see that simple solution. (I don’t need, or want, ten surface mount relays….)Please point me in the right direction.Thanks again.This is the closest thing that I can find:January 29, 2017 at 6:30 pm #22829
There are quite a few different solutions. The right one for you will depend upon factors including the speed that you require, the current carrying capacity, and so forth.Depending on your application, you might be able to just use a transistor instead of a relay.You could use a solid state relay, that can be driven directly from 3 V.You could use a mechanical relay, that can be driven directly from 3 V.You could use a transistor to drive the coil of a relay that requires higher voltage and/or current.January 29, 2017 at 6:56 pm #22830
So, truth be told, I don’t know how much current the closed 9v circuit would draw.I’m assuming it’s not much, as it’s likely just triggering another relay inside the device (I can probably check this).EDIT: There is no electrical schematic, but they do show a 24vdc solenoid in the parts list. I could pop the cover and see if that’s where the foot pedal goes, but there isn’t another likely candidate for the switch to trigger.EDIT #2: The electrical schematic is under the hood (bless them) and calls for a mechanical relay.If I can figure out how to post a picture, I’ll include that.From your perspective, speed isn’t an issue: 500ms should be plenty fast enough. I don’t think I need to worry about timing, but could actually adjust your software to compensate, if that turned out to be necessary.February 6, 2017 at 6:09 pm #22831
I received my 3.3 volt relay today, and mounted it to a board to connect to the EBB.If I understand your numbering system, B1 is the bottom three pins, B0 above that, then B2, with B3 on the top.I expect to take 3.3v off of B3, as the connector that I have that fits that pin spacing won’t easily fit the inner connectors.To check that I had the relay pins correct, I tried to check by hooking it up to B1, since I know B1 works, as the pen lift operates properly.Not knowing the polarity ahead of time, I metered the pins and was surprised to find +5V center pin to the rearmost pin and -5v from the center pin to the frontmost pin. I was expecting 3v.If my 3.3v relay will be happy with 5v, then no problem. I figured I should check first. Am I reading this wrong?And, assuming I’ll be using B3, which pins should I use to trigger my relay?February 6, 2017 at 10:28 pm #22832
Yes, the 5 V center pin is there to provide power to the servo motor, which does require 5 V. The signal pin is a “3.3 V” logic signal.February 7, 2017 at 11:46 am #22833
OK, I looked at the schematics and board layout, and my best guess is that the 3.3v signal should come across the two outboard pins on B3 (assuming I tell the software to use that).The numbering system used in those diagrams is not consistent with what is on the board, if I’m reading it correctly.Also the labeling ground pins with a “+” sign is not a usage I am familiar with.So, should I look for a 3v signal across the outboard pins of B3 (if I set up the software properly)?In other words, which is the “signal pin”?And, if so, which side should be positive? (The relay coil specifies a positive terminal, but I suspect that it shouldn’t really care.)Thanks
- You must be logged in to reply to this topic.