Page 113 - Programming the Raspberry Pi Getting Started with Python
P. 113

The  serial  range  finder  module,  shown  in Figure 11-6, outputs an inverted signal; therefore, a tiny
          board with a single transistor and resistor on it must be used to invert the signal back to normal. Full
          instructions  for  assembling  this  little  adaptor  board  can  be  found  on  the  book’s  website
          (www.raspberrypibook.com).






















          Figure 11-6    The range finder serial adapter and range finder module
             The range finder module plugs into the top of the adapter, and the bottom of the adapter fits into the
          serial socket, as shown in Figure 11-7.






























          Figure 11-7    Assembling the range finder and adapter
          Step 2: Attach the Screen
          The  LCD  screen  comes  in  two  parts:  the  screen  itself  and  the  driver  board. These  are  connected
          together with a rather delicate ribbon cable. I attached the two together with a cushioned self-adhesive
          pad. Be careful where you attach the screen, and treat the display delicately.
             The screen comes with power leads (red and black) as well as two RCA plugs. To neaten things up, I

          cut off one of the RCA plugs (the one connected to the middle cables in the white connector plug).
          Refer to Figure 11-8. If this seems too drastic, an alternative is to fasten it somewhere with a cable tie
          so that it’s out of the way.
   108   109   110   111   112   113   114   115   116   117   118