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

Relay board

1121315171823

Comments

  • chaosgkchaosgk Posts: 322
    edited 2009-06-23 14:47
    Yes, all of the music is a single wave file and has been premixed and is ready to go. I finally found a very reliable way to etch my boards, which sucks this close to the deadline, but it works very very well. I found that using a course grit sandpaper works better than trying to make the surface extremely smooth. The traces stick bettrer. Also found that if I don't worry about getting all of the paper out between traces before etching and then take it out after it has etched for a couple minutes, the paper comes off without a problem. I did a board last night with 100% traces in tact. Still waiting on the replacement connectors to show up for the igniters to connect to. If they don't show up, I don't know what we'll do.
    We are very behind on the schedule so I doubt we will have a full use of all of the slaves, but I will keep plugging away at them and get done what we can. At least there should be a working ignition system.
  • chaosgkchaosgk Posts: 322
    edited 2009-06-24 05:56
    Do the caps on the audio out have to be those values? I was going to hit my brother up for some of that size, but he left on a trip till the 1st and I'm not sure where to get them from quickly.

    ·
  • kwinnkwinn Posts: 8,697
    edited 2009-06-24 16:52
    They do not have to be those exact values but they should be close.

    The 10nF (.01uF) filter the pulses. If you make them smaller the high frequency noise will increase and the bass will decrease. If you make them larger the high frequencies are reduced and the bass increased.

    The 1uF also affect the bass. Better to make them larger rather than smaller but anything from 0.47uF to 10uF should be ok.
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-24 16:58
    they are extremely common values though and you should have no trouble finding them in any electronics store that sells parts.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-24 20:46
    I think i'm ready to test audio at any point so if the spin is ready for me to test, I'll take it.· I will be working on getting the master connected to a slave tonight and hopefully make some lights flash.
    Is getting the code to the prop mod as simple as copying it and the wave file to the sd card and inserting it or did I miss something there.
    How big of card will the prop mod handle, 4-8gb?
    ·
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-24 20:56
    The propmod is programmed through header. Sd card can be 2gb or less with code we are using. e

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-24 21:44
    Ok, what do I need to program the propmod? I picked up a couple of 2gb micro SD's. So once the propmod is programmed, does it need to be programmed every time we use it or will it pull off the SD card from then on?
  • kwinnkwinn Posts: 8,697
    edited 2009-06-25 01:18
    chaosgk, the program will go in the eprom along with the list of commands for the slaves. The SD card will be for the music.
  • chaosgkchaosgk Posts: 322
    edited 2009-06-25 01:37
    Ok, so what connection do I need to actually get the program into the eeprom of the propmod? Is it just a modified usb connection or what?

    I have the master ready to go to test audio now and the outputs will be ready to run to the slaves tonight.
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-25 01:40
    With uSD on top you place the prop plug on the programing header with badge down.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-25 08:04
    Did I miss something? what programming header are we talking about? The original Prop Dev board I bought had USB on it, is there something else I need to buy or build?
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-25 08:07
    You need to build the serial adapter in proppeler manual or buy propplug which is a usb programmer

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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.
  • kwinnkwinn Posts: 8,697
    edited 2009-06-25 18:08
    chaosgk, here is the latest version using the '595 chips for selecting the slaves.

    It should select slave 1 and activate relays 24 and 56,
    then slave 2 relays 23 and 56,
    slave 3, relays 22 and 56 ....etc
    finally slave 15 relays 10 and 56

    Let me know what it actually does.

    Post Edited (kwinn) : 6/25/2009 7:01:41 PM GMT
  • kwinnkwinn Posts: 8,697
    edited 2009-06-25 18:19
    Sorry about the delay completing the software. I have been extremely busy up to now, and working on it a bit here and a bit there makes it go even slower. Also, my hardware is not the same as yours which makes it harder still. I have taken Thursday to Sunday off to concentrate on finishing everything. From my end it should just be the timing and push buttons left.

    PS - for the moment I am using a keyboard with the enter key for start/pause and esc for reset.
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-25 18:24
    I may have time this weekend to write a boot loader that can load the eeprom image from the usd card but you will need to mail propmod to someone with propclip or make serial circuit to load the boot loader on.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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.
  • kwinnkwinn Posts: 8,697
    edited 2009-06-26 00:10
    OK, I corrected some errors and this one should do what the last one was supposed to do.

    Post Edited (kwinn) : 6/26/2009 7:47:48 PM GMT
  • chaosgkchaosgk Posts: 322
    edited 2009-06-26 06:59
    Awesome Kurt, you've gone so far out of your way for this, I can't even begin to thank you enough. Anyway, I've been busy with building the actual pyro's because it seems my partners can't somehow pick up the basics of making the stars and I have to babysit them on everything. It's our 2nd year of building and they should know this stuff. I have other guys coming out this weekend that did a lot of the building with me last year so hopefully everyone will start picking up their own parts so I can focus just on the firing system and not worry about anything else. I have Tuesday through the 4th off so I should be able to focus on this stuff.
    I looked up the manual for the serial adapter, it appears to be just a simple connection of the correct lines off a serial cable to the correct pins on the prop, the page I saw used 4 wires I think? correct me if i'm wrong or post a simple pinout of what goes where and I'll whip something up.
    You'd think that you could tell a couple of 40 year old men that the mixtures need to be wet to the consitency of modeling clay or playdough or just clumpy like damp dirt and they could figure out what that means. They also can't seem to figure out that it is easier to mix up a batch of chemicals and seperate a few ounces to use as spare if they over wet something so they don't have to measure out another 5 or 6 different chemicals again to add to it. AAAAAAGGHHH.
    I'm tired and need to go to bed. I'm going to feel like a real *** if you all have gone to so much trouble for me and we don't get it ready in time or something goes wrong and none of it works because of something I did or didn't do in time.
    I only need one good 20 hour day to get the electronics functional and then I can focus on the other stuff, which I have wasted that much time holding their hands or doing things that they didn't get done.
    The prop can't by any chance slow down time can it, that would be a great spin program if it could, maybe give me an extra two weeks.
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-26 09:45
    When looking at the propmodule with the sd card on top and the prograing header facing you pins are from left to right:

    vss, /res, tx, rx

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-26 19:26
    SerialtoPropeller.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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.
  • kwinnkwinn Posts: 8,697
    edited 2009-06-26 20:22
    chaosgk, I have uploaded V 0.04 to the earlier post.

    It should select slave 1, pause for about 1 second and activate relays 24 and 56,
    then slave 2 relays 23 and 56,
    slave 3, relays 22 and 56 ....etc
    finally slave 15 relays 10 and 56, and stop at this point.

    Hope you have more than one slave ready. If you need more time to check the slaves you can change the "waitcnt (8_000_000 + cnt)" in the "wait_for_time" subroutine.

    mctrivia, I have added "begin_music", "pause_music", and "continue_music" subroutines to the program. Can you add the wave player and the calls for those functions in and send the result back to me. I have 2 questions for you.

    1 is the handling of the SD card done directly by the music object?
    2 would you have time to write and test the start/pause and reset button routines?

    Since I don't have the same hardware setup either of you do getting everything working could be difficult. Any ideas on how to proceed?

    I am going to concentrate on a PASM program that uses a cog to provide accurate millisecond timing and leave the music and button stuff for you guys. If we are pressed for time the keyboard can be used for the moment.

    Post Edited (kwinn) : 6/26/2009 8:33:23 PM GMT
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-26 20:41
    If you get newest code I wrote it contains everything. All you need is initialize and add play pause calls. Look for the most resent zip

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-26 21:45
    We have to DJ a wedding·tonight, but my guys are coming out after we are done and will probably pull an all nighter. I hope to have at least one slave tested by morning, if that one does what it needs to, I'll be printing the slave boards in mass and getting everyone I know to start soldering.
    ·
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-26 23:06
    Attach converter schematic.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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.
    620 x 322 - 33K
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-26 23:09
    audio code attached you need to reference PlayWav_16bitStereo_delay

    subroutines:
    start,pause,unpause,play

    no attributes for any of them. it self contained will take care of playing the audio.

    What pins where used for audio? right now right is set to 10 and left 11. lines 203,205

    Only thing needed on uSD card is the wav file. example provided.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-26 23:37
    Are those 2n3906 and 3904 amplifiers necessary? I need to try and make this from parts I can find around here and I have everything else except those unless I can find them in something else.
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-26 23:47
    they are necisary because the voltage on the serail port is no where near the right voltage for the propeller. They are extremely common parts and you are bound to find them. They do not have to be those exact part numbers. any similar NPN and PNP transistor should work. I would recomend buying the propplug it makes things so much easier.

    I am writing a bootloader right now http://forums.parallax.com/forums/default.aspx?f=25&m=363100

    hope to finish it this weekend so you may be able to just mail the module to a forum member near by who could program it for you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-26 23:57
    Ok, how about this, is it possible to have a prop program a prop? Remember, I do have my USB propeller dev board, can I connect it to that somehow and have it program the prop mod? It has all those IO pins, it should be good for something right?
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-27 00:05
    Yes. Connect pins 30,31,reset and vss together between two boards with short wires. If you connect power to module only should be able to load boot loader on. After that you can remove connections and load nee code via usd

    May want to ask in prop formula if it will work before trying.

    I will send you loader when done it

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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-06-27 00:18
    I have to head out to my show now, can you post that and get back to me. I'll be home around 1:30 CST.
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-27 05:01
    http://forums.parallax.com/showthread.php?p=818967

    my converting of spin loader to pasm is going along well. If I can figure out how to reset prop without reseting ram boot loader will work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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.

    Post Edited (mctrivia) : 6/27/2009 5:11:53 AM GMT
Sign In or Register to comment.