Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Advanced Techniques > NXT to Arduino Communication

NXT to Arduino Communication

So far, we haven’t talked about programming the NXT brick. The NXT brick (Figure 10-15) has an Atmel ARM7 processor, a graphic display, a small speaker, three motor ports, and four sensor ports. It’s more powerful than a standard Arduino. One of the possibilities is connecting the NXT brick and the Arduino together. We’ll discuss one way of doing this with I2C, a common way of connecting peripherals to microcontrollers.

We were impressed with the robustness of the NXT brick
Figure 10-15. We were impressed with the robustness of the NXT brick

I2C is a two-wire interface for connecting to low-speed peripherals. It’s fairly ubiquitous, and generally works well. It’s used all over computing, from microcontroller boards to PC motherboards. It’s a bus protocol, which means that a variety of devices can connect to the same two wires. Each device has an address on the bus. Generally, devices are either masters or slaves on the bus. Masters can read data from slaves, or write data to slaves, but slaves have no real in-protocol way of alerting masters of changes.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint