Page 271 - Making PIC Microcontroller Instruments and Controllers
P. 271

2?O   AT ABTFTCIAL  HONEOft A IABLE SUNFACE THAT STAYS IEI'ET


                      A sampling  ofpossible BASIC Sfamp  module applications wi&  the Memsic 2125 include:
                        Dual-axis  tilt sensing for autonomous  rcbotics applications
                         Single-axis  rotational  position  sensing
                                                  sensing  for alarm systems
                        Movement/lack-of-movement
                         R-/C hobby  Fojects  such  as autopilots
                      Memsic  (wwwnemsic.com) providos  the  2125 in a surface-mount  format Parallax
                      mounts the circuit on  a PC board  pioviding  all VO  connections so  it can easily be
                      inserted on a b{eadboard  or though hole  prototype  area.

                      The actuaton we will use for the hodzontal  position  conection of the  table will be
                    two  radio control  (R/C)  hobby  servos.



                    Discussion


                    There arc two ways we can mount the sensor  to conect the tilt of the table. We can  mount
                    the sensor on the  base that is being tilted or we can mount the sensor  on the actual table
                    we want to keep levol. (A tbird way would be to corect  for ihe hlt in one direction by
                    sensing  base tilt, and  in the other direction by detecting  table tilt. This is an intercsting
                    academic  exercise that we will  not undertake horc  lbut  you may want to play with it on
                    your  ownl.)































                    WmXW           An anlftcial hoiizon-a  basic unadorned cardboard
                      horizontal table  wilh a couple of  levels and a  gravlty  sensor.  (simple
                                          is adequate our  purposes,)
                      inexpensive construction     lor
   266   267   268   269   270   271   272   273   274   275   276