Shop OBEX P1 Docs P2 Docs Learn Events
Cool project needs programming help!! — Parallax Forums

Cool project needs programming help!!

Biofuel_guyBiofuel_guy Posts: 5
edited 2008-10-12 05:26 in BASIC Stamp
idea.gif·Hello Everyone,
I've done my fair share of reading and exploring the BS1 and BS2 but to be honest, I simply don't have what it takes to complete my project. I honestly need a person who can write what seems to be a very simple program for a stamp application.

I would like to automate my biodiesel fuel washing system. This process is very time consuming and I have extremely limited free time.

So, here I am looking for at least one good person to end my frustration.
I've attached a word doc with my projects automation sequence.

Please let me know your thoughts.
Thanks,
Larry
vetteman7243@msn.com

Comments

  • SRLMSRLM Posts: 5,045
    edited 2008-10-09 15:30
    Wow. That's quite a project, but I think you can do it. You've already got the gist of how to program: break it into logical steps. Now just write the code for each. Mostly it seems that you have three different types of external devices: Fluid switch, Solinoid, and Relay. Once you figure out how to interface each of these with the BS2, then it's simply a matter of watching them and triggering at the correct moment.
  • SRLMSRLM Posts: 5,045
    edited 2008-10-09 15:32
    Probably the easiest way for you to make it is to put each "step" that you outlined into a method, then just call those from a main method as neccessary (GOSUB step_1, GOSUB step_2, etc) You'll probably have lots of Do-While loops, since it seams like you're doing quite a bit of waiting/monitoring.
  • Lab RatLab Rat Posts: 289
    edited 2008-10-09 16:15
    for outputs from the stamp to a higher voltage device i have been using solid state relays
    it works but they are not the cheapest things you can buy

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I`m not prejudice I hate everyone equally
  • AmaralAmaral Posts: 176
    edited 2008-10-09 18:35
    is this an Commercial unit ?
  • Biofuel_guyBiofuel_guy Posts: 5
    edited 2008-10-09 18:41
    Hey Guys,

    There is no doubt I can do the job of programming this project. The problem is time. By the time I get the programming done I'll be old and wheelchair bound.

    Seriously, I run a restaurant full time 12 to 14 hours 6 days a week. Sundays I have to get the other neglected tasks around the house done. I simply don't have the time or patience to learn the language and apply what I learn. Trust me, I'm not lazy..· I just pick have to choose the things I know how to do and look for help with those I'm clueless on.

    Oh and yes... I'm using SSR's I bought a while ago. The are 3-24v dc controlled. They are fantastic technology.

    Thanks,

    Larry
  • Biofuel_guyBiofuel_guy Posts: 5
    edited 2008-10-09 19:27
    OK... Now that I've received several replies, how about someone bidding out the programming portion of this project. I can earn money. I can't earn time.

    The way I see it is: You've got the talent and knowledge. I respect that! I'm in need of a simple program.

    Any takers????

    Thanks,
    Larry
  • SRLMSRLM Posts: 5,045
    edited 2008-10-09 20:06
    I'll take a look at it. No guarantees.
  • Lab RatLab Rat Posts: 289
    edited 2008-10-10 00:11
    as a modifier to my previous reply i was playing around and found that using an opto isolator a 220 OHM resistor and a 12 vdc relay i can operate any voltage
    and it actually works i have been playing with it

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I`m not prejudice I hate everyone equally
  • Biofuel_guyBiofuel_guy Posts: 5
    edited 2008-10-10 00:21
    Are you triggering the isolator directly from the output of the stamp?
  • Lab RatLab Rat Posts: 289
    edited 2008-10-10 00:40
    no
    doing this actually destroyed two of them this way
    i put a 220 ohm resistor between the output of the stamp and the input of the isolater

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I`m not prejudice I hate everyone equally
  • Biofuel_guyBiofuel_guy Posts: 5
    edited 2008-10-10 01:49
    Yes.... That makes sense.. Current is a wicked thing especially in small circuits. What a great idea... I'll need to incorporate this into my final design. Thanks Lab Rat.
  • GICU812GICU812 Posts: 289
    edited 2008-10-10 04:36
    What stamp are you using? The BS2p's have poll functions that would make the L3 monitoring easier.
  • GICU812GICU812 Posts: 289
    edited 2008-10-10 05:18
    Okay, Ive got something going here.

    First off, if you agree to use this, you agree to test all safteys and cutoffs, monitor several cycles manually, and test for every contigency possible before comitting this to unmonitored use. I do not guarentee that I followed your instructions, but I tried.

    So basically, check to make sure there isnt any coding errors by causing some malfuctions and seeing how it reacts.

    Secondly, make sure you monitor a couple of cycles and ensure that it is working how you requested before commiting this to unmonitored use

    Third, I will not be held accoutable for any mistakes I may have made ( and ya'd hafta catch me first tongue.gif )

    As far as the compensation you were offering, please PM me about it if you are going to use this code, Im not materialistic, but I am in between jobs, and I did spend a few hours on this, more than I might normally just to help someone out on a forum.

    Ive taken one liberty with this code, I am only checking for L3 when actually add fluids, not when settling or draining. I would reccomend a hardware interlock on this anyway, so that the adding valves are powered by a closed L3, this way, it can never overflow, the valves simply cannot open under any circumstance when the L3 is activated.

    I have also added some debugging. When a startup error occurs, it flashes the YellowLED x number of times depending on which swtich is open Lx. I figure this might save some hair should it ever come up.

    This might not be the most concise code, but im assuming you are dedicating this stamp to this task, and it only really takes up 1 byte of ram and 15% of codespace.

    Post Edited (GICU812) : 10/10/2008 5:27:59 PM GMT
  • GICU812GICU812 Posts: 289
    edited 2008-10-10 05:22
    Oh, and that file isnt neccessarally final. If you need something added or changed, let me know. Also, of course, run through the code before loading it to make sure I understood what you were asking for. To be honest, Im not sure exactly why you are filling the tank with fuel before washing it out, but I just followed your document.


    Hehe, Ive allready had to tweak it once, I had it set to wash for 2.4 seconds instead of 240 (4 minutes)
    I fixed that, but it now uses 2 bytes of RAM, but I could rework that down probably.
    I edited the file at 130PM EST, incase you had allready downloaded it.

    Thats the kinda thing I need you to check for me. [noparse]:D[/noparse]

    Post Edited (GICU812) : 10/10/2008 5:28:12 PM GMT
  • SRLMSRLM Posts: 5,045
    edited 2008-10-10 08:21
    Ah. Thanks GICU. My offer/looksie withdrawn.
  • GICU812GICU812 Posts: 289
    edited 2008-10-10 17:30
    Also, would you want to trigger the drain valve in the event of an overflow?

    Perhaps, on overflow error, freeze and alarm, wait for Button1, on button1 open drain valve, wait x seconds, return to startup sequence and wait for start button

    Because as it is coded, you would have to manually drain\reset the mechanics, as the software just drops everything and the only option is to reset and start the sequence over again.
  • Lab RatLab Rat Posts: 289
    edited 2008-10-10 20:44
    aparently someone finally figured out what to do to kill some spare time lol (GICU812)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I`m not prejudice I hate everyone equally
  • Lab RatLab Rat Posts: 289
    edited 2008-10-10 20:44
    aparently someone finally figured out what to do to kill some spare time lol (GICU812)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I`m not prejudice I hate everyone equally
  • GICU812GICU812 Posts: 289
    edited 2008-10-11 05:38
    Actually it was kind of fun to finally have a project to code for. Mine neveer seem to come to fruition.
  • Lab RatLab Rat Posts: 289
    edited 2008-10-11 12:28
    i know what you mean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I`m not prejudice I hate everyone equally
  • GICU812GICU812 Posts: 289
    edited 2008-10-12 04:07
    Hows it looking?

    I changed a few things, fixed a bug in the debug output,, fixed·a timer·error (3 seconds instead of 30)·and a little cleanup knocked about 5 bytes off the size.

    Newer version attatched (1.1)

    You know we could easily add a serial LCD display to it. Would be able to assign fuctions to the button, and more easily display the error. They're only like $12

    Id still like to have it wait for a button push that would open the drain valve on critical overflow. Let me know.

    Anyone else want some coding done?


    Post Edited (GICU812) : 10/12/2008 7:02:19 AM GMT
  • mobile_bobmobile_bob Posts: 50
    edited 2008-10-12 05:26
    yes i too would like some coding done, but am not quite ready yet
    still working on the hardware.

    you will hear from me soon [noparse]:)[/noparse]

    bob g

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dream it, design it, engineer it, build it, and

    do what is necessary to make the damn thing work!
Sign In or Register to comment.