I was running it off a common, everyday, 9V alkaline battery. The motor and blade come from an entry level RC plane. The fan is used on Pokey, my firefighting robot, to blow out the candle flame in a Trinity Robotic Firefighting competition. Previously, we modeled the original, flawed motor driver circuit in a series on SPICE. Whee!Īt long last, let's revisit Pokey's fan motor driver circuit, redesign it, and get it working in real life. I connected it to my Commodore 64 cartridge port and got the chip to say stuff. I got one of the last before they sold out. Wait for SBY=1 (standby) to indicate chip is done speakingĭelay(2000) // delay 2 sec between phrasesĪ little trivia / history: When I first became interested in building a robot, way back in the late 80's in the days of big hair, record players, stone knives and bear skins, Radio Shack stocked these chips on their parts shelves. Set !ADL=0 for 2usec to tell the chip to read * Phoneme: HH EH LL AX OW (PAUSE) WW ER1 LL PA2 DD1 (PAUSE) My current plan is to create a device that speaks random phrases whenever a Sharp infrared ranger detects the presence of an object (like a person walking by).Īs for the code, it was a simple matter of porting the BS2 code to C for Arduino. Here's a link to the datasheet I scanned in.Īstute readers may have noticed the IR ranger in the schematic. There are many more details to hooking up the SP0256. Here's a schematic that shows the hookup. I arbitrarily hooked up !ALD to PD6 (digital pin 10) and SBY to PB1 (digital pin 9). I used a breadboard Arduino with ATmega328P and wired the address lines to PORTC (Arduino digital pins 0.5) so that in software I could simply assign the allophone address all at once ala PORTC = address rather than a pin at a time. The SBY (standby) pin goes low until the chip is done speaking the allophone just presented. The address represents a speech sound in the chip's internal ROM which corresponds to an English allophone (like CH, SS, LL, EH, EE, AH. The address is latched into the chip with the !ALD (Address LoaD) pin. The 8-bit address is presented to the SP0256 on pins A1-A8. It sends an audio signal on its digital out pin which is filtered and presented to an LM386 audio amplifier with a speaker connected. How it works, in short, is that the GI chip must be given an 8-bit address corresponding to a vocalization. Here's what it sounds like saying, "hello world" 20101215_164333.mp3 I mentioned the laser and used it here, but I have other plans. Here is the source code for the Java app. I wanted to visually display the camera's tracking data, so I wrote a Java Swing equivalent of the CC2's ATM 18 Project BlobTracker Front End software, since I couldn't get it to work. The output from the microcontroller is a comma-separated list of x-y pairs: x1,y1,x2,y2,x3,圓,x4,y4 The camera tracks four light sources and provides x and y coordinates. Here some sample output over the USB serial device while the camera tracks a laser. The source code listing can be found here. I converted kako's source code to mbed C++ and added the ~20MHz clock signal on p21, and setup I2C communication on p9/p10. So far I've gotten away with omitting the cap. In kako's and others' schematics, there's a 0.1uF capacitor between RESET and GND, probably to filter glitches. Note the pullup resistors on SCL, SDA, and RESET. I soldered the camera's 8 thin leads onto a 2x4 pin header and soldered that onto a perfboard with 1x4 headers on either side so I could easily breadboard the thing. Here are the sources for the Wiimote IR Camera hacks:Īfter disassembling the Wiimote, I desoldered the camera using solder braid with some extra flux paste. I'm following in the footsteps of great hackers, here. The Wiimote I planned to hack was purchased with a most generous gift card from my father in law (thanks, Mike!) Inside the Wiimote is an infrared camera that tracks infrared light point sources and reports their coordinates over I☬.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |