Book Image

C Programming for Arduino

By : Julien Bayle
Book Image

C Programming for Arduino

By: Julien Bayle

Overview of this book

Physical computing allows us to build interactive physical systems by using software & hardware in order to sense and respond to the real world. C Programming for Arduino will show you how to harness powerful capabilities like sensing, feedbacks, programming and even wiring and developing your own autonomous systems. C Programming for Arduino contains everything you need to directly start wiring and coding your own electronic project. You'll learn C and how to code several types of firmware for your Arduino, and then move on to design small typical systems to understand how handling buttons, leds, LCD, network modules and much more. After running through C/C++ for the Arduino, you'll learn how to control your software by using real buttons and distance sensors and even discover how you can use your Arduino with the Processing framework so that they work in unison. Advanced coverage includes using Wi-Fi networks and batteries to make your Arduino-based hardware more mobile and flexible without wires. If you want to learn how to build your own electronic devices with powerful open-source technology, then this book is for you.
Table of Contents (21 chapters)
C Programming for Arduino
About the Author
About the Reviewers

Playing with Wi-Fi

We previously learned how to use the Ethernet library. Then, we tested Bluetooth for short-range network communications. Now, let's test Wi-Fi for medium range communications still without any wire.

What is Wi-Fi?

Wi-Fi is a set of communication protocols wireless driven by standards of IEEE 802.11. These standards describe characteristics of Wireless Local Area Networks (WLANs).

Basically, multiple hosts having Wi-Fi modules can communicate using their IP stacks without wire. There are multiple networking modes used by Wi-Fi.

Infrastructure mode

In that mode, Wi-Fi hosts can communicate between each other via an access point.

This access point and hosts have to be set up with the same Service Set Identifier (SSID), which is a network name used as a reference.

This mode is interesting because it provides security by the fact that each host has to pass by the access point in order to access the global network. We can configure some access lists in order to control which host...