User Tools

Site Tools


adc_switches

Differences

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

Link to this comparison view

adc_switches [2021/02/14 21:55]
vk3smb created
adc_switches [2021/02/14 22:11]
vk3smb
Line 5: Line 5:
  
 The lower the button number, or lower ADC value will take priority over the higher number switches. The lower the button number, or lower ADC value will take priority over the higher number switches.
 +==== 8 buttons ====
  
 {{ :picaxe:picaxe-adc.png?direct |}} {{ :picaxe:picaxe-adc.png?direct |}}
  
 +The ADC Values are as follows
 +  * 0-39 fault, 244-255 fault.
 +  * 231 - 243 idle (no switch pushed)
 +  * 40 - 64 button 1
 +  * 65 - 89 button 2
 +  * 90 - 114 button 3
 +  * 115 - 140 button 4
 +  * 141 - 166 button 5
 +  * 167 - 190 button 6
 +  * 191 - 205 button 7
 +  * 206 - 230 button 8
  
 +of course it is best to measure with debug when playing with the buttons.
 +
 +==== 2 buttons ====
 +{{ :picaxe:picaxe-adc-2-button.png?direct |}}
 +
 +The ADC values are as follows
 +  * 0 - 29, 244 - 255 fault
 +  * 201 - 243 idle (no button pressed)
 +  * 30 - 111 button 1
 +  * 112 - 200 button 2.
 +
 +Again measure with debug to ensure accuracy
adc_switches.txt ยท Last modified: 2021/02/14 22:11 by vk3smb