Arduino from Uno to Hero

@JulienHoltzer @SoFABbyTV

2024 - 2025

Tell me about you

My awesome hobby...

My dream for the future...

In my toolbox...

Goals & expectations

Two months ahead

Understand hardware electronics

Be autonomous to find solutions

Identify possible issues and constraints

Get new ideas for future projects

Do you Arduino ?

http://www.pobot.org

 

http://www.sofab.tv

What is Arduino ?

Electronics, design, DIY, open source, tinkering, IoT

Disruptive technologies 

From smartphone to iPhone

 

From stylus to Pencil

 

From microcontrollers to... Arduino

Open Source & Do It Yourself

Free designs

Open hardware

Open Washing machine

Low code software

Arduino Heroes

Massimo Banzi

Limor Fried

Axelle Ferry

arduino.cc

adafruit.com

youtube/heliox

1. How do you Arduino?

Hardware & software

How to power, how to connect

Components

101. Arduino hardware(s)

Cinque : RISC-V

Beatle

102. Software(s)

Processing (P5) : same IDE

Standard IDE for Arduino

Other Arduino IDE

ArduBlock : assemblement puzzle

approche dite "low-code"

Arduino Cloud : programmation en ligne

pour installer le minimum sur PC

et bien d'autres : Platform.io, Visual Studio...

103. Connect & power

USB : power / program / communicate

Serial : communicate / (program)

Wifi : communicate / (program)

Bluetooth : communicate 

Ethernet : communicate / power

Wall mains : power

Batteries : power

and many others... 

104. Sensors

Analog inputs

Digital inputs (TOR : "tout ou rien")

IC : integrated circuits

105. Actuators

Servomotors, stepper motors, DC motors, solenoids

Lights & displays

Buzzer, speakers

 

Sound & music synthesizers

106. Protocols & signals

Courage !

Arduino is a simple tool

 

Identify all possibilities

 

Test and fail to adapt

 

Try and repeat

2. Set up basics

201. LAB "Just blink !"

  1. Open IDE
     
  2. Select board & Select USB
     
  3. Load example Blink
     
  4. Upload
     
  5. Observe

 

202. What just happened ?

  • Cross compilation : develop on your PC but code for a target hardware
     
  • From code to machine language : C++ language converted into binary
     
  • Bootloader : using USB link to open serial communication with Arduino
     
  • Memory : storing the binary in a long-term memory that can be executed
     
  • Execution : start / setup / loop

203. Ohm, Volt & Ampere

  • Voltage : U = 2,2 volts in a led
     
  • Current : I = 20 mA maximum
     
  • Resistance : R = ?

Formulas : U = R x I   /  P = U x I

Power in the led : P = 44 milliwatts (mW)

Needed resistor : R = (5-2,2) / 0,02 = 140 Ohms

204. GPIO, your best friends

  • General Purpose Inputs Outputs
     
  • Input : digitalRead, analogRead
     
  • Output : digitalWrite, analogWrite (?)
     
  • HIGH / LOW :  5V / 0V ? Not so simple !
     
  • Pull-up resistors : digitalWrite on inputs
  • Non-general purposes : SPI, I2C, UART, 1-wire, ...

204. Not only GPIOs

205. LAB "Hello World"

  1. Open IDE, select board & USB
     
  2. Setup : Serial.begin(9600);
     
  3. Loop : Serial.println("Hello, World !");
     
  4. Program
     
  5. Open the console & observe

 

206. Talking things

USB : Serial, MIDI, keyboard, mouse, ...

 

Serial : RX TX, UART, SPI, I2C, 1-wire, ...

 

Wireless : Wifi, Bluetooth, ZigBee, BLE, GSM, 5G, satellites

3. Board & electronics

  • Identifying and understanding parts
     
  • Discovery of a hardware lab
     
  • Designing a new prototype
     
  • Learning curve

301. Show & Tell

Memory

CPU

GPIO

Clock

Power inputs

Buttons

Connectors

Leds

302. LAB "hardware"

Discovery of hardware tools

 

Soldering or not ?

 

From tinkering to prototyping

 

Embedded electronics, boxes & cases

 

 

303. Design your idea

What could be made with the components

 

How much does it cost : buying & running

 

Impact for production / manufacturing / usage / recycling

 

Energy & IT costs : designing sustainable solutions

304. Find solutions

Design hardware as a puzzle of hardware components

 

Design software as services for users

305. Learning curve

The "hype cycle" may be applied to electronics discoveries

306. Experimentations

307. Improve until success

PDCA methodology

 

Analyze and learn

4. From zero to Uno

401. Keep calm and think

  1. Prepare : identify components

  2. Do : connect circuit and write software

  3. Control : check if it works

  4. Act : find solutions for next try

402. LAB "Sparkling"

Change blink with different delays

and change outputs

403. Inputs with dimmer

Analog vs Digital

 

Potentiometer

404. LAB "Light show"

PWM & LED fading

405. Physical sensors

LDR sensor

 

IR sensor

406. LAB "nature connection"

switchs, movement, collisions

Congratulations !!!

You have reached the objective

5. Visual programming

6. Cloud & IoT

7. Your own project

Design

 

Solutions

 

Experimentation

 

Next steps...

Evaluation

https://forms.gle/6GHF2xN3P8cb7JYx8

You are a Hero of Arduino !

Understand electronics

 

Identify components

 

Tinker prototypes

 

Write software in C++

 

Design IoT solutions

8. The Arduino way for Artificial Intelligence

AI is all about data and computations

  • Data analysis that humans cannot handle: volume, velocity, variety, veracity
  • Fast identification of current events: classifications and reactions
  • Predicting the future based on the past: decision-making
  • Generating content to fill in the gaps: text, images, videos

Arduino is  both a data provider and a computer

Distributed computing

From "anytime" (always on)

to "anywhere" (ubiquitous)

CLOUD

EDGE

Do you speak AI ?

If you don't speak Arduino language fluently... AI do !

That's all folks !