In just 24 sessions of one hour or less, Sams Teach Yourself Arduino Programming in 24 Hours teaches you C programming using the Arduino, so you can start creating inspired “DIY” hardware projects of your own! Using this book’s straightforward, step-by-step approach, you will walk through everything from setting up your programming environment to mastering C syntax and features, interfacing your Arduino to performing full-fledged prototyping. Every hands-on lesson and example builds on what you have already learned, giving you a rock-solid foundation for real-world success!
Step-by-step instructions carefully walk you through the most common Arduino programming tasks.
Quizzes at the end of each chapter help you test your knowledge.
By the Way notes present interesting information related to the discussion.
Did You Know? tips offer advice or show you easier ways to perform tasks.
Watch Out! cautions alert you to possible problems and give you advice on how to avoid them.
Learn how to...
- Get the right Arduino hardware and accessories for your needs
- Download the Arduino IDE, install it, and link it to your Arduino
- Quickly create, compile, upload, and run your first Arduino program
- Master C syntax, decision control, strings, data structures, and functions
- Use pointers to work with memory—and avoid common mistakes
- Store data on your Arduino’s EEPROM or an external SD card
- Use existing hardware libraries, or create your own
- Send output and read input from analog devices or digital interfaces
- Create and handle interrupts in software and hardware
- Communicate with devices via the SPI interface and I2C protocol
- Work with analog and digital sensors
- Write Arduino C programs that control motors
- Connect an LCD to your Arduino, and code the output
- Install an Ethernet shield, configure an Ethernet connection, and write networking programs
- Create prototyping environments, use prototyping shields, and interface electronics to your Arduino
Arduino-Based ECU Development Board With Dual CAN Bus Interface
Leverage the power of an ARM Cortex M3 32-bit processing capability in combination with a dual CAN Bus interface to create your next CAN Bus, OBD-II or SAE J1939 application or prototype.
By combining our dual CAN port interface, the Arduino DUE microcontroller, an OBD2 or SAE J1939 cable, and open-source software libraries you are ready to go with powerful a turn-key Arduino-based dual CAN bus solution.
Use the vast resources of Arduino software (sketches) and hardware components (shields) to create your CAN Bus, OBD2, or SAE J1939 application.
Possible applications include:
- CAN to USB Gateway and Protocol Converter
- CAN to Wireless (WiFi, Bluetooth) Gateway
- SAE J1939 Gateway and Protocol Converter
- CAN Data Logger
- CAN Bridge (connecting 2 CAN networks, even at different baud rates)
- CAN Analyzer (in combination with a suitable Windows program)
- SAE J1939 Data Monitoring
- CAN Bus ECU Prototyping
- SAE J1939 ECU Prototyping
Two prototyping boards for 32-bit applications are now available from Microchip Technology Inc., a provider of micro-controller, mixed-signal, analog and Flash-IP solutions. The PIC32MX and PIC32MZ Curiosity Boards include an integrated programmer debugger and are fully integrated with Microchip’s MPLAB® X IDE and into PIC32’s powerful software framework, MPLAB® Harmony that provides flexible and modular interface to application [...]
Arduino is an open-source computer hardware and software company, project and user community that designs and manufactures microcontroller-based kits for building digital devices and interactive objects that can sense and control objects in the physical world.This is no ordinary circuit board. Arduino allows anyone, whether you're an artist, designer, programmer or hobbyist, to learn about [...]
The prototyping of Controller Area Network (CAN) applications used to be a tedious and expensive task, but the recent years have seen the emergence of low-cost, yet easy-to-use embedded development platforms such as the Raspberry Pi. The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard [...]
About Controller Area Network (CAN) Controller Area Network (CAN) is a serial network technology that was originally designed for the automotive industry, especially for European cars, but has also become a popular bus in industrial automation as well as other applications. The CAN bus is primarily used in embedded systems, and as its name implies, is a network technology that provides [...]
The Teensy is a breadboard-friendly development board that comes with loads of features in a very small package. Each Teensy 3.1 or 3.2 comes pre-flashed with a boot-loader so it can be programmed using the on-board USB connection, i.e. there is no external programmer required. You can program for the Teensy in your favorite program editor using C or you can [...]
This post is part of a series on CAN Bus and SAE J1939 Prototyping with the ARM Cortex M3 processor.I will take a risk by repeating myself over and over again by saying that the mbed LPC1768, as well as the Arduino Due, is utterly useless in its bare form. In order to accomplish any [...]
This post is part of a series on CAN Bus and SAE J1939 Prototyping with the ARM Cortex M3 processor.As it turns out, the Arduino Due, just like a myriad of other embedded systems with CAN interfaces, was developed under the best intentions, but these intentions were focussed on providing a low-price ARM processor solution [...]
This post is part of a series on CAN Bus and SAE J1939 Prototyping with the ARM Cortex M3 processor. According to the official Arduino website: The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU. It is the first Arduino board based on a 32-bit ARM core microcontroller. It has 54 digital input/output pins [...]
This post is part of a series on CAN Bus and SAE J1939 Prototyping with the ARM Cortex M3 processor. The ARM Cortex-M is a group of 32-bit RISC ARM processor cores licensed by ARM Holdings. The cores are intended for microcontroller use, and consist of the Cortex-M0, M0+, M1, M3, M4, and M7. The ARM Cortex-M3 processor is very [...]