User Tools

Site Tools


products:microtouch:index.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

products:microtouch:index.html [2011/01/27 00:04]
ladyada
products:microtouch:index.html [2016/01/28 18:05]
Line 1: Line 1:
-====== Introducing Microtouch! ====== 
  
-{{  :​products:​microtouch:​microtouchlattice_t.jpg ​ |}} 
- 
-{{  :​products:​microtouch:​microtouchback_t.jpg ​ | :​products:​microtouch:​microtouchback_lrg.jpg}} 
- 
-{{  :​products:​microtouch:​microtouchstuffback_t.jpg ​ |:​products:​microtouch:​microtouchstuffback_lrg.jpg}} 
- 
-Sure, the iTouch is pretty cool. But who wants such a locked down device? Why not build your own touch-screen device, with your own apps, all on open source hardware and using open source tools? OK, it can't play MP3s, but it does have a 320x240 TFT color display with resistive touch screen, an Atmega32u4 8-bit microcontroller,​ lithium polymer battery charger, backlight control, micro-SD slot, and a triple-axis accelerometer. Yeah, this is the next big thing and for those of us who like to DIY, you can do a lot of cool stuff with this dev board. 
- 
-Of course, we wouldn'​t leave you with just a schematic and a 'good luck'! The designer of the microtouch (known to us by the code name [[http://​rossum.posterous.com/​|"​Rossum"​]]) has written [[https://​github.com/​rossumur/​microtouch|a full hardware core operating system and multiple demo apps]] such as... 
- 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​calibrate_app|Calibrate]]** Touch-screen 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​doomed|Doomed]]** a 3D rendering maze 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​accelerate_app|Accelerate]]** keep the ball in the center of the screen by tilting 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​paint_app|Paint]]** fingerpainting but without the cleanup 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​flip_app|Flip]]** a Reversi game 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​mines_app|Mines]]** like Minesweeper but without the hassle of installing Windows 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​icosohedron_app|3D Icosohedron]]** controllable by tilting the board 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​pacman_app|Pacman]]** a sprite animation demo 
-  * **[[http://​wiki.ladyada.net/​products/​microtouch/​index.html#​lattice_app|Lattice]]** 3D lattice demo 
- 
-The project is a collaboration between Rossum & Ladyada! ​ 
- 
-Designed in California and New York 
- 
-====== Microcontroller ====== 
- 
-{{  :​products:​microtouch:​microtouchavr.gif ​ |}} 
- 
-The brains of the Microtouch board is an [[http://​www.ladyada.net/​wiki/​partfinder/​microcontroller#​usb_series|Atmega32u4]] in TQFP package. The nice thing about this chip is the built-in USB support and lots of pins.  
- 
- 
-====== Lithium Polymer batteries & charger ====== 
- 
-{{  :​products:​microtouch:​microtouchstuffback_t.jpg ​ |:​products:​microtouch:​microtouchstuffback_lrg.jpg}} 
- 
-{{  :​products:​microtouch:​microlipo.gif ​ |}} 
- 
-The board has a built in single-cell 3.7v LiPoly charger ([[http://​www.microchip.com/​wwwproducts/​Devices.aspx?​dDocName=en527982|MCP73812]]). The LiPoly should be connected to the [[http://​www.ladyada.net/​wiki/​partfinder/​jst|2-pin 2.0mm JST-PH]] - verify polarity before connecting! The charger chip is very simple but will properly charge the lipoly. The charge rate is set to be about 250 mA, so do not plug it into a non-powered hub. It should work fine with any computer. Unfortunately there is no notification when the battery is charging (say an LED) but you can detect the battery status via the microcontroller'​s ADC pin. You can change the charge rate by adjusting **R17** from 4.7K. Check the MCP73812 datasheet for the resistor that corresponds to your desired charge rate 
- 
-====== 3.3V power supply ====== 
- 
-{{  :​products:​microtouch:​microldo.gif ​ |}} 
- 
-The output of the lithium polymer battery (or USB passthru) connects to a LP2985 3.3v LDO. This regulator is fairly good quality and will give about 1% precision output and up to 150mA. Most of the power usage in this design is for the 4 x backlight LEDs which can be up to 80mA total. There is also 10-20 mA taken by the microcontroller,​ ~20mA taken by the TFT, and another 2 mA for the red indicator LED. The accelerometer takes almost no power. 
- 
-====== Indicator LED ====== 
- 
-{{  :​products:​microtouch:​microled.gif ​ |}} 
- 
-This LED is on pin **PC7** and is used to indicate when the bootloader is active. You can use it for pretty much anything you'd like 
- 
-====== Crystal ====== 
- 
-{{  :​products:​microtouch:​microtouchxtal.gif ​ |}} 
- 
-The timing crystal is at 16 MHz. This is overclocking the Atmel a bit (at 3.3v it would prefer to be at 12MHz) - we test the chips to verify they work before shipment. The reason for overclocking is to be able to do fast video-speed display interfacing. The crystal has two stability capacitors next to it. 
- 
-====== Power button (aka How to turn it on!) ====== 
- 
-{{  :​products:​microtouch:​micropower.gif ​ |}} 
- 
-The Microtouch uses a trick that allows it to turn itself off when battery powered. The LDO has an **Enable** pin that is pulled to ground (that is, the LDO is disabled by default). When the right-angle power button is pressed, this enables the LDO which turns on the AVR. The first thing the AVR does is pull the **Enable** pin high (its connected to **PF0**). When the button is let go, the pin will keep the LDO activated. This means that if you want to write your own code for the Microtouch to make sure the first thing that happens is setting **PF0** to an output and pulling it high.  
- 
-Of course, to turn itself off, the chip can drop **PF0** low. The user will have to press the button again to turn it back on. This shoudln'​t be done when on USB power because the bootloader can get stuck in a '​brownout loop' but a press of the reset button will '​kick'​ it out. 
- 
-====== Reset Button ====== 
- 
-{{  :​products:​microtouch:​microreset.gif ​ |}} 
- 
-The Reset button is connected to the AVR's reset pin. You can use this to enter the bootloader (or, if you overwrote the bootloader, reset the board) 
- 
-====== ISP header & AVR reprogramming ====== 
- 
-{{  :​products:​microtouch:​microisp.gif ​ |}} 
- 
-The AVR can be reprogrammed by any standard AVR programmer and avrdude or similar. If reprogramming,​ don't forget you have to keep the power button pressed during the programming cycle **or** plug it into the miniUSB jack **or** provide 3.3V power from the programmer. Just make sure that the target power really is 3.3v, for example the USBtinyISP provides 5 not 3.3v which could damage the LCD 
- 
-====== LCD backlight ====== 
- 
-{{  :​products:​microtouch:​microbacklight.gif ​ |}} 
- 
-The LCD has 4 backlight white LEDs in parallel. We use a 22-68 ohm resistors (the image shows 68, the value may change depending on how bright the TFT backlight is for the current model) on each Cathode (K) and drive the cathode with a NPN connected to pin **PC6**. You can dim the backlight by software-PWMing the pin (there is no hardware PWM on that pin). For the most part either the backlight is on or off. When off, the display is not visible. 
- 
-====== microSD/​transflash card ====== 
- 
-{{  :​products:​microtouch:​microsd.gif ​ |}} 
-  
-====== 3-axis Accelerometer ====== 
- 
-{{  :​products:​microtouch:​mma7455.jpg ​ |}} 
- 
-The microtouch has an accelerometer soldered on board, which you can use to get movement data. Accelerometers can detect motion, and tilt. The model is [[http://​www.freescale.com/​files/​sensors/​doc/​data_sheet/​MMA7455L.pdf|MMA7455]]. It can be configured from +-2g (for higher-resolution on small movements) to +-8g for larger movements. 
- 
-Do not throw the Microtouch to test the accelerometer! Please use the Accelerate App instead :) 
- 
-====== USB  ====== 
- 
-{{  :​products:​microtouch:​usb.jpg ​ |}} 
- 
-You can use the USB connector to bootload new firmware onto the microtouch. The bootloader takes 4K of memory. You can also overwrite the bootloader by using an AVR ISP programmer and the 6-pin ISP port.  
- 
-The USB port is also used to recharge the LiPo battery at about 250mA. You can also run the Microtouch direct from USB but because the lipo charger is connected directly to the regulator, it can't supply the full 100-150mA required (the voltage isnt buoyed by the battery). As a result, the core code will detect the voltage drop and dim the backlight. For that reason, you'll notice its dimmer without a battery 
- 
-====== Apps! ====== 
- 
-To quit an app, touch the dark area at the bottom of the screen, past where the TFT image ends 
- 
-===== Main App Screen ===== 
- 
-{{  :​products:​microtouch:​mainappscreen.jpg ​ |}} 
- 
-The main screen shows all the apps you have programmed into the microtouch. Select an app by touching the circle with your finger 
- 
-===== Off ===== 
- 
-{{   :​products:​microtouch:​offapp.jpg ​  |}} 
- 
-The Off App does basically what you think it does, turning off the device by pulling the regulator enable pin low. It will not turn off when the MicroTouch is USB-powered 
- 
-===== HW Test ===== 
- 
-{{   :​products:​microtouch:​hwtestapp.jpg ​  |}} 
- 
-The Hardware Test app is used to check the battery voltage, backlight, touch screen, accelerometer and SD card all at once. You can adjust the backlight brightness with this app. 
- 
-===== Doomed ===== 
- 
-{{  :​products:​microtouch:​doomedapp.jpg ​ |}} 
- 
-Doomed is a simple 3D rendering engine. You can navigate around the simple map by touching on the edges of the screen for the direction you wish you go. 
- 
-===== Calibrate App ===== 
- 
-{{  :​products:​microtouch:​calibrateapp.jpg?​500 ​ |}} 
- 
-This app is used to calibrate the touch screen. You only need to do this once for the life of the device: the calibration is stored permanently in EEPROM. Touch the centers of the circles with finger or stylus to set the calibration points. 
- 
-===== Accelerate App ===== 
- 
-{{  :​products:​microtouch:​accelapp.jpg ​ |}} 
- 
-This app uses the built in 3-axis accelerometer to move a ball around the screen and also show a 'strip chart' recording of the data being read. You can move the ball around by tilting the screen. 
- 
-===== PacMan App ===== 
-{{  :​products:​microtouch:​pacmanapp.jpg ​ |}} 
- 
-A cute little app shows sprite animation in a (non-playable yet) pacman animation. 
- 
- 
-===== Icosohedron app ===== 
- 
-{{  :​products:​microtouch:​3dapp.jpg ​ |}} 
- 
-This App shows an icosohedron that is 3D rendered on the display. The shape reacts to the accelerometer so you can rotate it by tilting the screen 
- 
-===== Lattice App ===== 
- 
-{{  :​products:​microtouch:​microtouchlattice_med.jpg ​ |}} 
- 
-Yet another 3D app, this one draws an intricate lattice 
- 
-===== Mines App ===== 
- 
-{{:​products:​microtouch:​microtouchmines_med.jpg|}} 
- 
-Press the squares, but avoid the mines! Just like minesweeper but without the bloat of a Windows install 
- 
-===== Paint App ===== 
- 
-Draw on the screen with your finger 
- 
-===== Flip App ===== 
- 
-A '​go'​-like game, this single player game is over when all the tiles turn one color 
/home/ladyada/public_html/wiki/data/pages/products/microtouch/index.html.txt · Last modified: 2016/01/28 18:05 (external edit)