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

Both sides previous revision Previous revision
Next revision
Previous revision
products:microtouch:index.html [2011/01/27 01:05]
ladyada
products:microtouch:index.html [2016/01/28 18:05] (current)
Line 88: Line 88:
 {{  :​products:​microtouch:​microbacklight.gif ​ |}} {{  :​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.+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 changing ​the hardware PWM value of the pin. When off, the display is not visible ​- it is transmissive,​ not transflective.
  
 ===== microSD/​transflash card ===== ===== microSD/​transflash card =====
  
 {{  :​products:​microtouch:​microsd.gif ​ |}} {{  :​products:​microtouch:​microsd.gif ​ |}}
- + 
 +Both MicroSD and MicroSD High Capacity cards are supported. 
 ===== 3-axis Accelerometer ===== ===== 3-axis Accelerometer =====
  
Line 109: Line 111:
  
 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 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
 +
 +====== Bootloader ======
 +
 +You don't need an AVR programmer to use this board, we put a nice bootloader on there already! The bootloader is activated by pressing the RESET/BOOT button while plugged into USB. You can tell the bootloader is active when the **green '​Boot'​ LED pulses/​breathes** The board will then show up as a Serial or COM port, and you can use **avrdude** to program it. The '​programmer name' is **avr109** so for example, to test you should run **avrdude -p m32u4 -P COM3 -c avr109** which will initialize the bootloader.
 +
 +{{  :​products:​atmega32u4breakout:​avr109.gif ​ |}}
 +
 +The bootloader will time out eventually (after about 5 seconds)
 +Because we are not using a USB/serial converter, bootloading is tremendously fast, we can program a full chip in under 2 seconds!
 +
 +The bootloader takes up the last 4K of FLASH, so be aware that you will only have 28K instead of 32K. We have found that this isn't very constricting as 28K is still plenty. If you'd like more space, you can always use the 6-pin ISP connector and an AVR programmer (which will delete the bootloader)
 +
 +If you're using windows, you will need an **inf** driver file, you can download it below (in the **Downloads** section). Mac/Linux peeps don't as it shows up as a '​generic'​ serial port in /​dev/​ttyUSB* or /dev/cu.* (check both and/or **dmesg**)
 +
 +{{:​products:​microtouch:​microtouchcdcboot.zip|Here is a copy of the bootloader, makefile and a bat file to show how we program microtouches}}
  
 ====== Apps! ====== ====== Apps! ======
Line 128: Line 145:
  
 {{  :​products:​microtouch:​imageslide_t.jpg ​ |:​products:​microtouch:​imageslide_t.jpg}} {{  :​products:​microtouch:​imageslide_t.jpg ​ |:​products:​microtouch:​imageslide_t.jpg}}
 +
 +Troubleshooting: ​ The files on the SD card might not show up immediately upon bootup. ​ When using cards 2GB or larger, if the image icons do not appear, go to the HWTest app and ensure that it confirms the card is ready. ​ After leaving the HWTest app, the icons appear.
  
 ===== Off ===== ===== Off =====
Line 195: Line 214:
   * [[https://​github.com/​adafruit/​microtouch|PCB files in EagleCAD format are available from Adafruit'​s github]] (CC attrib/​share like)   * [[https://​github.com/​adafruit/​microtouch|PCB files in EagleCAD format are available from Adafruit'​s github]] (CC attrib/​share like)
   * [[https://​github.com/​rossumur/​microtouch|Firmware core including image converter is all available from Rossum'​s github]] (MIT license)   * [[https://​github.com/​rossumur/​microtouch|Firmware core including image converter is all available from Rossum'​s github]] (MIT license)
 +  * [[http://​www.adafruit.com/​datasheets/​atmega32u4cdc.inf|Bootloader INF file for windows (mac/linux don't need a driver)]]
  
 To develop code, you'll need an install of the AVR-gcc tool chain. To develop code, you'll need an install of the AVR-gcc tool chain.
/home/ladyada/public_html/wiki/data/attic/products/microtouch/index.html.1296090356.txt.gz · Last modified: 2016/01/28 18:05 (external edit)