Hi, I don't have any background in programming (unless you count making basic shapes in BASIC in 7th grade) but I have what is probably an overly ambitious project I am doing for work. I have all of the hard parts working but now I am being frustrated by what I'm sure is a simple problem.
A little background: I created a sketch that collects real-time UDP information from a RFID system that is tracking tagged bees. It is set up to deliver a small amount of sucrose solution to artificial flowers from a gravity feed solenoid valve when a bee is detected by the reader. There is also a wait time built into the program so that a valve is turned offline for a certain period of time so that a bee can not just hang out at the artificial flower and keep getting fed. The processing code uses firmata to control an arduino mega that open and close the valves. The program also parses the data and sends it to a text file. After much work I got it all working but there seems to be a bug. Once in a while the valves stay open and do not close after a tag has been detected at the reader. Obviously, it must be a problem in how I coded the valves to close but I'm not sure how to tackle it.
I put it in the 'programming questions' forum section because I think it just requires a programming solution since the libraries and hardware are functioning correctly. Please let me know if I should move my question to a more appropriate section.