Micro:bit IoT In C (I/O Press)
Micro:bit IoT In C (I/O Press)
Wednesday, 17 August 2016

The BBC micro:bit is capable of taking on a variety of roles including that of a powerful IoT device. In order to gain full access to its features and to external devices, however, you need to use C which delivers the speed crucial to programs that communicate with the outside world. Writing for the electronics enthusiast with a programming background, Harry Fairhead presents details of sensors and circuits with several complete programs.

<ASIN:1871962455>

Author: Harry Fairhead
Publisher: I/O Press
Date: August 15, 2016
Pages: 194
ISBN: 978-1871962451
Print: 1871962455

Category: IoT; Electronics
Audience: IoT developers

mircobit

 

 

A first “Hello Blinky” C program introduces the mbed online compiler, after that an offline approach using the yotta development environment plus NetBeans in used to discover how to control the micro:bit’s I/O lines and explore the basis of using the GPIO. For speed we need to work directly with the raw hardware and also master memory mapping and pulse width modulation. Sensors are connected using first the I2C bus, then by implementing a custom protocol for a one-wire bus, and eventually adding eight channels of 12-bit AtoD with the SPI bus, which involves overcoming some subtle difficulties and serial connections. The micro: bit lacks WiFi connectivity but using a low-cost device it can become an Internet server via its serial port. To conclude we look at the micro:bit’s LED display. This may only be 5x5, but it is very versatile, especially when you use pulse width modulation to vary the brightness level, something demonstrated in the classic game Commando Jump, written in C.

Harry Fairhead is the Editor of IoT-Programmer where you will find his other current and in preparation titles on Intel Edison, the Raspberry Pi.

 

Visit Book Watch Archive for hundreds more titles.

Subscribe to I Programmer's Books RSS feed 
or follow @bookwatchiprog on Twitter for news addition to Book Watch and for new reviews. Contact  BookWatch@i-programmer.info

Banner
 


97 Things Every Programmer Should Know

Author: Kevlin Henney
Publisher: O'Reilly, 2010
Pages: 258
ISBN: 978-0596809485
Print: 0596809484
Kindle: B0039OVIAK
Aimed at: Practising programmers
Rating: 5
Reviewed by: Alex Armstrong

 

The 97 Things series presents a well-chosen collection of short essays in a highly accessible way. Th [ ... ]



Interactive Project Management: Pixels, People and Process

Author: Nancy Lyons & Meghan Wilker
Publisher: New Riders, 2012
Pages: 192
ISBN: 978-0321815156
Print: 0321815157 
Kindle: B007SNRSMA
Audience: Anyone concerned with managing a web-related project Rating: 4
Reviewer: Kay Ewbank

 

This look at developing interactive applications  [ ... ]


More Reviews

 
 

   
Banner
RSS feed of all content
I Programmer - full contents
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.