Tham khảo tài liệu 'hacking roomba - tod part 11', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 282 Part III More Complex Interfacing Figure 13-17 Programming the Arduino board Another inexpensive and interesting approach to programming AVR microcontrollers is the Atmel AVR Butterfly a 20 credit-card sized board with a high-powered AVR controller and lots of I O like a beeper and an LCD display. SmileyMicros http produces a great beginner s book titled C Programming for Microcontrollers that uses WinAVR and the Butterfly. Hooking Arduino Up to Roomba Like the Basic Stamp the Arduino board operates at 5V logic levels and has a built-in 7805 voltage regulator that can take the Roomba Vpwr line and convert it to 5V. Figure 13-18 is the schematic of a basic Roomba-to-Arduino connection. The Arduino serial TX RX lines digital pins 0 and 1 are connected to the Roomba serial lines. Figure 13-19 shows the circuit wired up on a breadboard that plugs into the Arduino header sockets. It s very straightforward. Chapter 13 Giving Roomba a New Brain and Senses 283 Digital Figure 13-18 Schematic for Arduino-to-Roomba connection Figure 13-19 Arduino Roomba circuit wired up on a small solderless breadboard 284 Part III More Complex Interfacing Making an Arduino Prototyping Shield Unlike the Basic Stamp Board of Education the standard Arduino board doesn t come with a solderless breadboard attached. This is okay since they tend to wear out. In fact it would be nice to keep a circuit you created by just unplugging it from the microcontroller board when the inspiration strikes to try something else. You could use a stand-alone breadboard like in Figure 13-2 and run wires between it and Arduino. But since this is supposed to go on top of Roomba it would be better if there was a way to make a sturdy connection between the two. The Arduino designers have thought of this and have created a set of shields that sit on top of the Arduino board plugging in to its header sockets. This is a great solution since you can mix and match various shields to solve common .