Saturday, February 16, 2013
Gadget or tragic? PIC Microcontroller Project
Gadget or tragic? PIC Microcontroller Project Video Clips. Duration : 4.28 Mins.
25 years on, I decided to take up an old hobby - electronics. Whereas Z80 microprocessors were the leading edge 25 years ago, today, microcontrollers are the chip of choice. So I needed to define a simple project to grown my knowledge from zero. I took an analogy on a radio controlled vehicle and decided that was it. I would re-use an ancient joystick at one end and use even more ancient fischertechnik from my childhood days to put together a joystick controlled vehicle. At the joystick end I use 16F873 microcontroller to read the voltages on the joystick and crunch the values down to a command. for each motor I have forward, backward or stop plus a pulse width modulated power rating from 0 to 100%. The command is assembled in ASCII and then sent down the wire at 1200 baud (wireless to come shortly, hopefully) . At the fischertechnik vehicle end of the wire, a 16F627 microcontroller de-serialises the message, checks the header and payload, and if it checks out OK, sets the motors directions and speeds. This is repeated several times each second. For the pulse width modulated speed control, I use a second thread kicked off 5000 times a second to prvide the pulses. An L293D dual bridge driver powers the motors at about 7v from the 4.8v logic levels of the 16F627 chip. There are about 350 lines of assembler on the vehicle and about 250 on the joystick, most of which is defensive programming, error checking and trace. I take the NASA approach to things like this, something is ...
25 years on, I decided to take up an old hobby - electronics. Whereas Z80 microprocessors were the leading edge 25 years ago, today, microcontrollers are the chip of choice. So I needed to define a simple project to grown my knowledge from zero. I took an analogy on a radio controlled vehicle and decided that was it. I would re-use an ancient joystick at one end and use even more ancient fischertechnik from my childhood days to put together a joystick controlled vehicle. At the joystick end I use 16F873 microcontroller to read the voltages on the joystick and crunch the values down to a command. for each motor I have forward, backward or stop plus a pulse width modulated power rating from 0 to 100%. The command is assembled in ASCII and then sent down the wire at 1200 baud (wireless to come shortly, hopefully) . At the fischertechnik vehicle end of the wire, a 16F627 microcontroller de-serialises the message, checks the header and payload, and if it checks out OK, sets the motors directions and speeds. This is repeated several times each second. For the pulse width modulated speed control, I use a second thread kicked off 5000 times a second to prvide the pulses. An L293D dual bridge driver powers the motors at about 7v from the 4.8v logic levels of the 16F627 chip. There are about 350 lines of assembler on the vehicle and about 250 on the joystick, most of which is defensive programming, error checking and trace. I take the NASA approach to things like this, something is ...
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2013
(436)
-
▼
February
(82)
- Sony Ericsson Xperia™ PLAY - UNLOCKED
- FIFA 11 PC Joystick original
- The Gadget Show: Golden Joysticks 2009
- No more steering wheels - drive by joystick!
- NVIDIA Project Shield - handheld gaming system Jan...
- 60Beat GamePad Controller for iPad, iPhone - Hands...
- Joystick Auctions Update - Second chance!!!
- Ten One Design Fling Mini
- All Winners Golden Joystick Awards 2012
- Hyperspin Arcade Cabinet 42" Monitor
- Dark Souls PC: How to set up & use a PS3 controlle...
- Wii U SNES Retro Classic Controller Unboxing
- Modern Combat 3 + IControlPad + Samsung Galaxy S3 ...
- Makowski :: Razer Onza Review :: w/ Slow Turn Fix ...
- OHT's TvD (2.3) - SF4 2v5 Teams - TvD vs. AinaB
- Joysticks
- Intel® My WiFi Technology
- MadCatz Joystick Comparisons pt1 - Arcade Fightstick
- how to solve the joystick (RS) problem in fifa 2012
- Hyperspin All Emulators using Xbox 360 joystick
- Part 1 - The King of Fighters XIII - Console combo...
- Configuração Universal de joystick comandos Mame.(...
- Battlefield 3 | aLexBY11 | "Armas del Suelo y Joys...
- الحلقة 434: طريقة تحويل manette/joystick ps3 إلى ماوس
- Robot Stephen Fry presents Golden Joystick Award
- COMO SOLDAR EL JOYSTICK PARA TU TAPETE PIU (PARTE 2)
- Rocky Top Arcade 90% Complete
- Classic Game Room - SEGA GENESIS 6-BUTTON ARCADE S...
- PlaneMaker Tutorial 13: Customizing the Cockpit
- Know How ( Saber como ) ¿Cómo armar tu propio Joys...
- Classic Game Room HD - OUT RUN for Sega Master System
- Joystick para el iPhone 4 y iPod Touch Fling mini ...
- Lets Play Amiga Classics [1]: Moonstone - A Hard D...
- World of Tanks - Tutorial Part 2 First Battle Trai...
- Budget Gadgets Unboxing
- Gadget or tragic? PIC Microcontroller Project
- Battlefield 3 Beta - 15 minutes of gameplay in jet...
- Um Joystick, Um Violão - 04
- Amiga Longplay [377] Katakis
- Cat® M Series 2 Motor Graders: Ease of Service
- PC, PS3 & PS2 Universal Arcade Stick - USB Stick F...
- Setting Up Mame Controls For "ArcadeReviews"
- giocare con il joystick della ps2 sul pc
- Golly! Ghost! [ゴーリー!ゴースト!] by Namco - Arcade
- EMC AEVIT 2
- Ultimate Japanese Balltop Joystick Holding Guide
- Manfrotto 324RC2 and 327RC2 Joystick heads tutoria...
- Jurassic Park - E3 2011 Gameplay Walkthrough Part ...
- Exposição Mundo Jurássico
- Star Fox 64 3D - Japanese Player Experience Part I...
- Ion iCADE Arcade Cabinet for iPad & iPad 2
- Agricultural Simulator 2011 Extended Edition - ing...
- East Coast Customs Round 2 Joysticks Now Available!
- Classic Game Room HD - ATARI 5200 Controller revie...
- XIM3 Pre-Release Demonstration: Bird Snipe
- Bateria Eletronica Caseira, Joystick USB !!
- como jugar prototype con joystick + gameplay
- XIM3 Halo Reach xbox 360 mouse and keyboard adapte...
- UDK Dynamic 3rd person Camera System
- COMO JUGAR MULTIJUGADOR (TECLADO/JOYSTICK) EN PES ...
- Amiga Longplay [562] Ikari Warriors
- Battlefield 3 Jetplay with new joystick
- Um Joystick, Um Violão - 13
- como configurar un joystick para cualquier juego (...
- Mame Bartop showing fighting games pt 1
- Battlefield BAD COMPANY 2 joystick
- NBA Jam Tank Game
- Tighe Lory Reviews HAPP, IL, and Wico Brand Arcade...
- OMSI The Bus Simulator - Gameplay HD Line 92 Freud...
- MAN OF THE HOUR
- Time Stamp Every SMS / Text Message On iPhone - iO...
- Wii U Nintendo Land : Octopus Dance
- BANDA UÓ - JOYSTICK
- Análise de Produto - Joystick-it Tablet Arcade Sti...
- LFS Drifting, G25, Handbrake, Dual monitor - On a ...
- Review On Logitech Attack 3 Joystick HD
- Projeto Natal (Project Natal) - Xbox 360 - Trailer 1
- Arcade Demo Battlezone
- Configuracion Joystick para teclado estandar en el...
- East Coast Customs - Step 1: Creating Art In Photo...
- PlaneMaker Tutorial 5: Landing Gear
- Unboxing: Joystick wireless de XBox 360 para PC
-
▼
February
(82)
About Me
- Marissa Jacobs
Powered by Blogger.
0 comments:
Post a Comment