Programming Arduino: Getting Started with Sketches
- 3.5 hours on-demand video
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- How to write Arduino C for their Arduino
- How to use the Serial Monitor
- How to write code to access digital and analog inputs and outputs
- How to write their own functions
- How to use arrays and strings
- An Arduino Uno and USB cable
- Optionally a multimeter and wire
This course is intended for the Arduino beginner who wants to learn how to write code for their Arduino. The course concentrates on how to program your Arduino rather than electronics and is based on my best selling book Programming Arduino: Getting Started with Sketches.
The course explains in simple terms what is meant by a program and then leads the participant in a step-by-step manner through the process of writing their first sketch (Arduino program). The course lectures are supplemented with exercises to reinforce the participants understanding.
After completing this course you will be able to write simple programs for your Arduino and will have learnt a fair bit about the C programming language that Arduino uses.
- Beginner Arduino users new to programming
- Electronics hobbyists wanting to learn how to program a microcontroiller
- Students and educators interested in embedded software
Not all variables are the same, so in this lecture, you will learn about global and local variables and the various problems that can arise when using them.
Writing code that works is one thing. Writing code that you can follow a few months later or pass on to someone else is quite another. This lecture gives you some guidance as to how to write good code.
This section looks at how C deals with lists of values and text. After a few simple examples, the time has come to take off the training wheels and tackle a real programming project in the form of a Morse Code translator that converts text that you type into the Serial Monitor into flashes or Morse code from an LED.
So far in this course, we have mostly been using numbers. In this lecture you will learn how Arduino's can also do things with text. This can be used for the Arduino to send text messages to your computer over USB or for situations you might meet in the future where some kind of text display is attached to an Arduino.
This step-by-step example leads you through the process of coding a Morse Code translator. A few new C features are introduced along the way, but more importantly, the process of thinking-up a sketch is explained.
This lecture expands on what you have already experienced with digital outputs, and with the aid of a multimeter you will learn a bit more about what's going on and also learn how to write programs that allow you to turn pins on and off on your Arduino using the Serial Monitor on your computer.
Where as digital outputs are simple on off things, analog outputs allow you to deliver a variable output. In this lecture you will learn how to use analog outputs from your code and even dial-up a particular output pin voltage from your computer using the Serial Monitor.