Differences

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

Link to this comparison view

Next revision
Previous revision
madoverlord:robots-ultra [2016/05/13 21:35]
127.0.0.1 external edit
madoverlord:robots-ultra [2016/10/04 14:42] (current)
Line 1: Line 1:
-==== Read 8 Ultrasonic sensors at the same time (Robots) ==== 
- 
-// This is a sleazy trick. You wire up the 8 trigger lines to one byte of the Stamp'​s IO word, and the 8 input lines to the other. Then you trigger all t // 
- 
- 
- 
 === Getting a BASIC stamp to sample 8 Ultrasonic sensors at once === === Getting a BASIC stamp to sample 8 Ultrasonic sensors at once ===
  
Line 37: Line 31:
  
  
-See the code for my <A HREF="pwm.t.html">​PWM reader</​A> ​for+See the code for my [[madoverlord:​robots-pwm|PWM reader]] for
 more background on the debug port trick and what the heck more background on the debug port trick and what the heck
 "​fracBase"​ is. "​fracBase"​ is.
Line 45: Line 39:
  
  
-<PRE>+<code>
 ' PROGRAM: ​   BS2SX Sonar Parallel Ping Test ' PROGRAM: ​   BS2SX Sonar Parallel Ping Test
 ' Written by: Robert J Woodhead ' Written by: Robert J Woodhead
Line 281: Line 275:
  serout 16,16624,[ $FF,​twist,​move,​csum ] ' send packet  serout 16,16624,[ $FF,​twist,​move,​csum ] ' send packet
  goto main:  goto main:
-</PRE> +</code>