Forum Replies Created
-
AuthorPosts
-
MichaelKeymaster
I’m afraid you can’t use other analog pins when doing input processing with the Video Experimenter. The analog to digitial converter (ADC) of the chip needs to be disabled in order to use it for the brightness threshold. It’s a limitation of the ATmega328.
You can use analog pins when generating video signals and overlay, but not when capturing video input.
If you are interested in the details, see section 22.2 “Analog Comparator Multiplexed Input” in the ATmega328 datasheet.
MichaelKeymasterYou need to install the Video Experimenter version of TVout as described here:
http://nootropicdesign.com/ve/The documentation shows you the right directory structure….
MichaelKeymasterAre you just trying to put a signal through the device? The switch should be to the right ->
What project are you trying to run?
PAL works the same as NTSC on the LM1881 chip. It should be no different….
MichaelKeymasterYes, keeping the display off would greatly increase the battery life when using a 9V battery. Six C or D cells will run the clock (even with display) for days.
All of the ATmega328’s digital and analog buttons are in use, so you would need to use existing ones (like button or led) to add the new sensor and output.
A photoresistor could be used as a sensor, and it could be installed in place of a button, and software tweaked to read the value as an input. You could control a solenoid using another output (use one of the LED outputs). But keep in mind that a solenoid requires a lot of current, and would need its own beefy power source.
Hope that helps.MichaelKeymasterMake sure to read the troubleshooting section:
http://nootropicdesign.com/defusableclock/build/
You probably have a short circuit somewhere. You can send high-quality photos (not blurry cell phone photos) of the front and back to support@nootropicdesign.com
MichaelKeymasterIt sounds like you have not attached the wires correctly. You need to connect a wire from each of the right side terminal positions to the left side terminal positions. Order does not matter, but all of the right side positions must be wired to the left side.
The reason the clock “explodes” immediately is that the software interprets the lack of connects as the case where you cut the “wrong” wire and it detonates.
MichaelKeymasterThe Leonardo is a completely different processor, so most code libraries for Arduino are simply not going to work on it. When people say “compatible” they really just mean you can do the simple things like “digitalWrite” and they will work. But low level libraries that manipulate timers and any other AVR registers won’t work.
I will need to write a special version of the Digit Shield library for Leonardo — first I need to get a Leonardo.
I will update the documentation making it clear that this library doesn’t work with Leonardo yet.
MichaelKeymasterThanks for that update. I think the LM1881 chip is sensitive to RF noise, and you mouse must have bothered it. Interesting!
MichaelKeymasterI have FINALLY gotten around to making a video and posting this game on the games page. Sorry for the delay.
MichaelKeymasterThat’s weird — sounds like you have a bad pin on that Arduino. The Video Experimenter uses pins 2, 6, 7, 8.
The pixels in the TVout frame buffer can be accessed with [tt:3mbklmw6]tv.get_pixel(x,y)[/tt:3mbklmw6]. The entire buffer is available as the array [tt:3mbklmw6]display.screen[/tt:3mbklmw6].
See the code in the computer vision project for examples of reading/manipulating the frame buffer.
http://nootropicdesign.com/projectlab/2011/03/20/arduino-computer-vision/MichaelKeymasterSounds like great work.
MichaelKeymasterYes, I believe you can power the Defusable Clock using that battery pack. It provides 12V, so the voltage regulator on the clock will run a little warm. That battery pack should be able to power the clock for over 30 hours, but not much longer.
I had to google CBRNE and now I’m intrigued. Where do you teach about Chemical, Biological, Radiological, Nuclear and Explosives???
MichaelKeymasterAnd the jumper is set to the V.SYNC position?
If so, then something else is wrong. Check the soldering connections (you probably already have). Or I can check out the device since you are local 🙂
MichaelKeymasterHi crazybutable!
Did you use the specialized version of the TVout library that is on our web site?
MichaelKeymasterJust closing out this thread. The soldering was very bad, and this was the cause of the malfunction. Short circuits everywhere.
-
AuthorPosts