Changes between Initial Version and Version 1 of Assembly_Notes


Ignore:
Timestamp:
Nov 8, 2013, 10:17:54 AM (9 years ago)
Author:
Eric Hazen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Assembly_Notes

    v1 v1  
     1Back to: [[Gait_Measurement_Timer]]
     2
     3
     4''''Misc. Notes'''
     5
     6Plastic Sensor PCB Mounting Spacers: round 4-40 length .345 inches
     7
     8The schematic for the IR sensor should have the correct labels
     9for the LEDs.
     10
     11Push-button switch assignments:
     12
     131 = set hours (MOM_SWS pin 1,2)
     14
     152 = set minutes (MOM_SWS pin 3,4)
     16
     174 = reset (MOM_SWS pin 5,6)
     18
     19
     20''''Firmware'''
     21
     22The posted software for the IR sensor board may have the wrong
     23freq for the LED pulsing.  There is some confusion over 38KHz
     24vs 40KHz depending on which IR receiver is actually installed.
     25Perhaps it is necessary to test both.
     26
     27
     28''''Firmware Programming'''
     29
     30A hex file is needed.  ''''gait_timer.hex''' for the main unit
     31and ''''gait_sensor_38.hex''' for the sensor unit.
     32
     33To program the sensor, ensure power is on pins 1, 2 (5V, GND) of
     34RJ-45:
     35
     36{{{
     37  sudo avrdude -p t45 -c avrusb500 -e -U flash:w:gait_sensor_38.hex
     38
     39}}}
     40To program the main unit, connect the AC adapter and turn
     41it on.  Then:
     42
     43{{{
     44  sudo avrdude -p m8 -c avrusb500 -e -U flash:w:gait_timer.hex
     45
     46}}}
     47Also, the AVR fuses must be programmed to select the 4MHz crystal
     48oscillator option:
     49
     50{{{
     51  sudo avrdude -p m8 -c avrusb500 -t
     52
     53}}}
     54{{{
     55  w lfuse 0 0xef
     56  q
     57
     58}}}
     59
     60