We made progress, but we had some bugs. I found it useful to myself to write down what I had done and plan for what to do. I figured I'd share it since yes and no is not that interesting.
We were able to trip the circuit, and use the Arduino code to interpret it (https://github.com/bshambaugh/BWPhotogate/blob/master/photogate.ino). The speed calculation is built in on line 53. The inputs from the receiving circuits should be A1 and A2.
We used some parts from a Parallax sumo-bot kit as pictured in
(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivDpN7BRU6MrISrKmwIZqsxyEgD2PDQMizJhZ8zAhCI9iqoOgu7fmtJDGZaJxC3Rb9SAunIEimGdMam0EWwQMc6odvTTXpmsnzCjKsU-OipERM8u9cTWMAbxMfzD013abZlIbU08COPCo/s1600/photogatecircuit_breadboardard1e2.JPG)
and (https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwKNHQ9Fr51WbFJ1FDrETGdl4UZPIBucSgiVFbDcVXkCI2wHL-KfQlM4RKVJ7JltpReHhm3Ilp67AYBHmFFfVvByQhnxy5nSq-ykXIywQ-TX-urYwshNyp1h8Jcks2NDjRqm112TfYHik/s1600/photogatecircuit_breadboardard1.JPG)
and pg. 45 - 49 of
(https://www.parallax.com/sites/default/files/downloads/27400-SumoBot-Manual-v2.1.pdf).
I seem to recall, we may have had some occasional issues with sensitivity, so it was a challenge to trip them at times.
We never got the final setup with the pvc pipe and reflectors to work.
I do not think they ever were tripped.
(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcEpzBv3mwKs5xXXBYAkgWjtCSs3I1ur25os7F2cAHw6yPzO4B0tONixm8MzlhYCzcLP8NU8oc4io54BSFwOD_MnKy7bb5mX0_KAg1pEACsjt_ZF9RaatKJ-wwJD0DKzJrLwabXi2YdM8/s400/photogate1.JPG). This appears to be putting the IR transmitter and receiver side by side with communication by bouncing off the reflector (compare photogate1.JPG to
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix0QgAW01k7zsB8VR-eepCQI2griMRIWD-SyQJ4h_Zxod1pjJmqH7hfNQB9ahLX3SsiqkpXxHlYgIv9mAv5oELUtsIbXlA9V0BE1WCHjVrxuiwYWKX5XTucUPG-X8ReF7cIcIyqe-9PLA/s1600/photogate2_zoom2.JPG)
It looks like we tried the sumo-bot parts. I may have been worried about transmission loss at the time and also how much a potato may shadow the signal by passing through the parachute shaped gates. The transmitter and receiver may need to face each other within the transmission and reception angle.
I may want to adjust the sensitivity of the receiver with an op-amp and the power of the transmitter with a potentiometer or pwm setup.
I'd like to go back and try it again with the infrared LED emitter and detector package from RadioShack
(https://www.radioshack.com/products/radioshack-infrared-led-emitter-and-detector).
A skilled observer who acted as an electrician / EE consultant thought it was simpler than the sumo-bot circuit. Perhaps it will befriendlier to my partner and I. We got it to light, and our cell phone(?) cameras were able to pick up the emission
(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjNrey8uJ9WhIlqx3efw4J5ORrnCsktAOrBokpQoMDKo_R7wHsAnVpdvpRjEzS3wBGiUPJkHId3urWAApjl4g5MswPe3lwfFdwl3IsuVx8doQVjbkjYLFZr_xmWndf-58wemkM2pIbpdo/s1600/ir_led_camera_light.JPG).
I think we should amplify the received signal to the two receiving diodes with an op-amp circuit and perhaps adjust the brightness of the two transmitting diodes with pwm or a simple potentiometer. The potentiometer setup already worked with the Sparkfun Redboard
(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqGDAqJEp8HCF6dsO8g2rCxz2NWWjU5oKj4z49hAw-bYRrEBCNwtQHCG-XqVMqDmKiTdd4OeR8YrORinTHR4x5EqWiDHWpRTCp0h_6qTw9TAkBL05Cj82pw3aSdJkZnIOHMc7yQbdpqz4/ /11800522_10103322872952857_7659406262285231569_n.jpg)
which is an Ardunio knockoff. I'm treating the receiving LED with the op-amp as a photodiode (https://en.wikipedia.org/wiki/Photodiode). It might be worthwhile to apply the op-amp circuit and pwm / potentiometer to the sumo-bot parts too.
For the op-amp circuit and pwm/potentiometer circuits, I constructed some circuit diagrams in Fritzing (file names in parentheses) that were based off ones I found on the web.
I went online to find some op-amp circuits. I ended up going with this one:
http://makezine.com/projects/make-36-boards/how-to-use-leds-to-detect-light/
(opampdiodenov26_bb.pdf)
I also found some led-dimmer circuits including or excluding a power rectifier and transistor (in order of more parts to less):
http://www.reuk.co.uk/wordpress/lighting/led-dimmer-circuit/
http://www.electroschematics.com/9730/high-power-led-dimmer/
http://www.555-timer-circuits.com/led-dimmer.html
(led555dimcomplex_bb.pdf),(led555dimmedcomp_bb.pdf),(led555dimmedsimple_bb.pdf)
I constructed the circuit for the potentiometer in the video
(https://www.youtube.com/watch?v=DLirSFg2ELo&index=18&list=PLah6faXAgguOeMUIxS22ZU4w5nDvCl5gs)
(potlednove26_bb.pdf) It looks like I already built it with the
Sparkfun Redboard as the battery.
I think we can either use the potentiometer circuit or the pwm circuit
to adjust the brightness of the LED. The potentiometer circuit is a lot simpler. I'm not certain of its limitations. It is a variable resistor. It is all analog, and I recall from the web that it may only be good for a small number of LEDs (although I don't know why this is true). The pwm circuit adds a 555 timer, a few capacitors, resistors, diodes, and perhaps a power rectifier and transistor to the potentiometer. The 555 timer produces a square wave so I call it
digital.
I e-mailed myself with some parts (mostly from mouser.com) that matched the circuit diagrams I found at the links above. I need to construct a purchase order for myself, and make this thinking more formal, mainly so when I go back to Oklahoma I have something to do with my project partner.
My partner was also worried about the lack of a rigorous method for sizing the potato gun. The potato guns had previously been sized empirically and with inspiration from sources such as Burt Latke's studies. I built a spreadsheet to scale based on size ratios if I recall correctly. This is described in a quote from
http://raptorlicious.blogspot.com/2015/05/potato-gun.html :
"Performance in terms of velocity of the potato gun was found to change as various ratios in the geometry changed. Performance was judged by the damage that the gun did to targets.The most damage was done when the chamber diameter was at least twice the barrel diameter with a ratio of length of chamber to diameter of chamber between 3 and 6. It was less apparent, due to limited experimentation, but the chamber volume was usually kept at 1.2 times the barrel volume. This was inspired by a website based on Burnt Latke's studies
(http://www.inpharmix.com/jps/Optimal%20Chamber%20Volume%20for%20a%20Fixed%20Barrel%20Size.html)."
We had no mechanism to measure the exact amount of fuel we put in other than our own sense of time when spraying the propellant. So, even if we got the photogate to work we may not measure a consistent speed due to variance in the propellant amount. If we fix the propellant amount,we might find the maximum speed for a particular potato gun.
Saturday, December 3, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment