Shop OBEX P1 Docs P2 Docs Learn Events
Relay board - Page 22 — Parallax Forums

Relay board

11718192022

Comments

  • Lab RatLab Rat Posts: 289
    edited 2009-07-28 01:29
    i was looking at the other forum in the prop file and i noticed something about an sd card i like the idea of an sd card for ease of programming i know that my laptop has an sd slot built in maybe yours to but if you can put the program right on the sd card and then slip it in the master board it might be a little more convenient

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Parallax posesses power beyond belief.

    Believe in it.
    Visit me at
    http://jrelectromech.services.officelive.com/default.aspx
    ·
  • mctriviamctrivia Posts: 3,772
    edited 2009-07-28 01:32
    My bootloader object on the obex allows for you to do that. All new propmods with sd option come with it perinstalled so propplug is not necisary

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-28 01:58
    Mctriiva actually wrote the boot loader just for this project because I didn't have a prop plug at the time. It will make loading the code much easier for anyone that buys one from him now.
    The start of the Master is being posted right now. It's slow going, I'm building each section slowly and labeling everything for easy reference for you and me.
  • Lab RatLab Rat Posts: 289
    edited 2009-07-28 02:18
    mctriiva you sound like a god if you are capable of writing such a program. tell me how long did it take and how many time did you learn that it ddnt work before your learned the right way to do it

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Parallax posesses power beyond belief.

    Believe in it.
    Visit me at
    http://jrelectromech.services.officelive.com/default.aspx
    ·
  • mctriviamctrivia Posts: 3,772
    edited 2009-07-28 02:59
    i had help. i used other peoples objects and asked questions.

    http://obex.parallax.com/objects/473/

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-28 03:21
    Kwinn, can I still put LED's on the Enables on the drivers?
  • kwinnkwinn Posts: 8,697
    edited 2009-07-28 04:32
    Incredible, 636 posts and over 9000 views. Lots of interest in this project.

    chaosgk, re: "can I still put LED's on the Enables on the drivers?" By all means, please do so.

    FYI - The slave select outputs on the "595's are probably the best place to do so. Pins 1 to 7 and 15 select slaves 1 to 8 on the first 595, and 9 to 16 on the second chip.
  • mctriviamctrivia Posts: 3,772
    edited 2009-07-28 04:35
    i am off to bed. one note before i go. though it is perfectly fine to put small parts under the propmod(i recommend it good use of space) make sure you don't have any under the crystal clearance could be an issue.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-28 05:45
    Posted almost done version 1.5.1 before off to bed. Just need to add the status LED's and I think I'm close to done. Was tough fitting 16 drivers in the space I wanted, but got it down to 50 sq inches.
    I would like status lights on my Dead Mans box for the run/reset/pause, what is the easiest way to do that? I'd still like them on the board as well.·

    Post Edited (chaosgk) : 7/28/2009 6:06:47 AM GMT
  • kwinnkwinn Posts: 8,697
    edited 2009-07-28 10:38
    Three options:

    1 - Put the leds and resistors in parallel with the ones on the board. The '595's have an absolute max current rating of 35mA per output pin, so if we keep the total current for the two leds to no more than 20mA we should be fine.

    2 - Since we are running these chips at 5V you could put the leds in series provided the total forward voltage of the 2 leds is no more than 4V and the led current requirements are similar.

    3 - There are 5 unused outputs on the status '595 so you can use any of them for totally separate leds. Just let me know which pins you use for what led if you choose this option.

    BTW - the status leds do not have to be connected to any particular pin on the last '595 so if it makes routing any easier connect them wherever you want. Just let me know what is connected where.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-28 13:49
    Ok, how does the board itself look? everything seem to be connected correctly as far as you can see?
  • kwinnkwinn Posts: 8,697
    edited 2009-07-28 17:22
    The board looked ok to me, but I did a relatively quick check.
  • kwinnkwinn Posts: 8,697
    edited 2009-07-30 02:30
    Built a second test board to match the prop pins and '595 status and slave select circuitry on the master controller and used the existing test board to emulate a slave. The software selects the proper output from the '244, outputs the correct slave address, and turns on the selected relays.

    All the timing looks good and the switches do what they are supposed to do. Now I just have to store the off times as the relays are fired and get them to turn off after 0.5 seconds.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-30 19:15
    Well, the boards have been sent off to the printers. Hopefully they show up in time for me to assemble and get one off to you kwinn.

    For the status LED's I used the next three (3,4,5) for secondary pause/run/reset lights and I put status LED's on the last two (6,7)· if you can do something useful with those last two, like make them flash for a few seconds on power up then go solid, or just blink random patterns or something.· They're there so I figured you could do something with them.

    If the boards don't show up on Tuesday, I won't be able to ship them till the 15th when I get back which still gives us 3 weeks until we need to put them to use.

    They will probably show up a day after I leave.· If my partners knew how to solder I could have them build a board, but I can't trust them to do it correctly.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-31 01:43
    The boards will be here Tuesday so that will give me that night and the Wednesday morning to build a couple for you and get them shipped off. I really hope I have all of the parts now, mainly the different resistor sizes, all of the control chips are here and the new 100uf caps just came in today. I'll try to draw up an instruction manual for it, (not that you need one) but just the basic layout of what goes where and why. If you want to see the final version of the boards as a pcb, let me know but I don't really want to post them for everyone. The previous unfinished ones had errors that I corrected so those are fine to stay up, but there were too many hours into designing the new ones just to let them go.
  • kwinnkwinn Posts: 8,697
    edited 2009-07-31 04:32
    If you happen to be short a part or two ship it anyway and let me know what`s missing. I have a few parts in my stock and have pretty good suppliers nearby. Don`t really see a need for the final PCB layout, but the basic parts layout would be nice if available.

    Making use of the status leds is simple. Just let me know what you want each of the eight leds to do and I will make it so.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-31 05:13
    Most of the PCB is already mapped on the board itself. I tried to incorporate as much information on it as possible. One of my pyro partners is coming out on tuesday to help populate the boards so they should go pretty quick.
  • mctriviamctrivia Posts: 3,772
    edited 2009-07-31 05:30
    I just got my match moduel from the pcb manufacturer. looks beautiful though the writing is very difficult to see because i did it as a copor pore and the solder mask covers. will have to remove solder mask from that area in future version. My camera is in for repairs but sent chaosgk a pic from my phone maybe he can post for me.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • mctriviamctrivia Posts: 3,772
    edited 2009-07-31 17:00
    here are my new module pcb. fires 16 matches. display LEDs(holes to right can be lit with no power to matches making 100% safe.

    Just got news the phenix connectors will not be in until end of August. [noparse]:([/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
    1471 x 891 - 398K
  • kwinnkwinn Posts: 8,697
    edited 2009-07-31 17:24
    mctrivia, board looks very nice, and compact as well. What is the reason for going with 16 matches per board?

    I have been thinking about how well (or poorly) the number of outputs from the master/slaves/etc match up with the number of tubes in a rack.
    This makes me wonder if we made the best possible choices. Are there any standards or popular setups for this type of equipment?
  • mctriviamctrivia Posts: 3,772
    edited 2009-07-31 17:29
    the reason for 16 is convienence and expence.

    Small shells may have a lot to a rack and that is why i designed the modules to plug into each other to allow for 1 enclosure to house up to 128 match points.

    at the top and bottom of each module is a header that plugs directly into the next(up to 8). the modules have been designed to be self aware of the location in the daisy chain so hardware and software is identical on each and if repairs are needed no custom changes to each are needed.

    larger shells though will often have 16 or less and you want to be able to minimize the number of wires running alover the place.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-07-31 23:18
    I think both Ideas are good. I based our design on the number of useful wires in a standard cat5 cable and we have built our racks on multiples of 7 just to maximixe the outputs. The real organization of what goes where is in the wiring of my boards to the actual connectors. One slave can have as many as 8 outputs or as few as 3 depending on how I configure the output ports so I can actually minimize on the number of cables going to each rack.
    I think your board design is awesome with the self aware aspect so they know automatically who they are.
    Nice job.

    How does each module link back to the main control for start/pause/reset on yours? You mentioned earlier that if a module loses contact with the control line, it goes to a safe/standby mode. Are they all daisy chained or is there a control wire that goes back to the control/deadmans switch. Curious how you have that wired.
  • mctriviamctrivia Posts: 3,772
    edited 2009-08-01 03:14
    I am using an rs485 data link to each enclosure. If wire pairs are shorted or opened I will see a constant 1 value so if that happens I put in safe mode.

    I can have up to 100 enclosures on one 6 wire daisy chain repeater is needed after that.

    Inside each enclosure I have:
    Heavy duty power supply
    Communication module
    1-8 match modules

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-08-01 15:03
    Do you have music stored somewhere or how is that sync'd with the match modules?
  • mctriviamctrivia Posts: 3,772
    edited 2009-08-01 15:42
    There is a controler that controls everthing and can play music.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-08-04 21:44
    My boards showed up today and are supposed to be sitting at my door when I get home. I'll post pics later.
    ·
  • mctriviamctrivia Posts: 3,772
    edited 2009-08-05 00:15
    Glad to here. I should be done assembling my new lab tomorrow.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-08-05 02:27
    Mctrivia,

    You mentioned when I started the re-design of the relay to put a resistor on the relay to +5v as a pull up, do you know what size I need to use for that?· is it high like 10k, or is 1.2k fine for those, please post back right away as we are assembling right now.
  • mctriviamctrivia Posts: 3,772
    edited 2009-08-05 02:30
    1.2 will work though I usually prefer 10

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • chaosgkchaosgk Posts: 322
    edited 2009-08-05 03:04
    Ok, I'll find the highest I can for my SMD's.
    I just finished the SMD's on the master and my partner is populating the slave right now.
Sign In or Register to comment.