Molemi IoT
  • Space farming using food computers for sustainable farming
  • Introduction to Arduino
    • Introduction to Electronics
    • The Breadboard
  • Controlling LEDs with an Arduino
    • The Code
    • Adding a button to control the LEDs
      • The Code
  • Introducing Sensors
    • The CO2 and air quality sensor
    • The Code
      • Explaining the Code
    • Light Intensity Sensor
  • Introducing the NodeMCU
    • Getting Started
      • A simple test for ESP8266
        • The Code
    • A light bulb switch using NodeMCU and the Blynk app
      • Setup Blynk on your Smartphone
      • The Code
    • Controlling a Centurion gate Motor with NodeMCU a 2-channel relay
      • Installing Blynk in Arduino IDE
    • Read and display the water flow sensor on Blynk
      • Setting up Blynk
      • The Code
        • Explaining the code
    • Read and Display temperature sensor readings with NodeMCU.
      • Installing libraries for DS18B20 temperature sensor.
      • Displaying the sensor readings on the serial port
        • Getting temperature readings from different DS18B20 sensors.
          • The Code
            • Display sensor readings on a web server
              • Build the web server
                • Designing and building the web page
                • The Code
    • Display the DHT11 sensor reading on a web server using NodeMCU.
      • Monitoring Room Temp & Humidity using Blynk
      • Installing DHT library on the ESP8266
        • Installing the Asynchronous Web Server library
          • The Code
          • Designing and building the web page
  • Data Science for Farming
    • Getting Started with Colaboratory
    • Introduction to Python for DS using Colab
  • Machine Learning for Farming
  • Molemi Personal Food Computer
    • Bill of Materials
  • Setting up WaziGate on a Raspberry Pi
  • Setting up DHT11 on Raspberry Pi
  • Using Telegram To Control Outputs
Powered by GitBook
On this page
  • Getting Started
  • Reference:

Was this helpful?

Introduction to Arduino

PreviousSpace farming using food computers for sustainable farmingNextIntroduction to Electronics

Last updated 5 years ago

Was this helpful?

One of the micro-controllers that will be used for the the Sustainable Farming Methods workshop will be the Arduino board. We will be using two variations namely the Arduino Uno and the NodeMCU. The Uno will be used for introducing the basic concepts and programming methods while the NodeMCU will be used to connect the sensors for the IoT section of the workshop. We will be using the Arduino board as it is open-source and affordable.

What is an Arduino ?

Getting Started

The Arduino Anatomy

  1. Digital pins Use these pins with digitalRead(), digitalWrite(), and analogWrite(). analogWrite() works only on the pins with the PWM symbol.

  2. Pin 13 LED The only actuator built-in to your board. Besides being a handy target for your first blink sketch, this LED is very useful for debugging.

  3. Power LED Indicates that your Uno is receiving power. Useful for debugging.

  4. ATmega microcontroller The heart of your board.

  5. Analog in Use these pins with analogRead().

  6. GND and 5V pins Use these pins to provide +5V power and ground to your circuits.

  7. Power connector This is how you power your Genuino when it’s not plugged into a USB port for power. Can accept voltages between 7-12V.

  8. TX and RX LEDs These LEDs indicate communication between your Genuino and your computer. Expect them to flicker rapidly during sketch upload as well as during serial communication. Useful for debugging.

  9. USB port Used for powering your Uno, uploading your sketches, and for communicating with your sketch (via Serial. println() etc.).

  10. Reset button Resets the ATmega microcontroller.

Reference:

An Arduino board is an open-source micro-controller that is used to read inputs - temperature and humidity on a sensor, pressing/toggling a button and it is able to give out outputs - turning a motor and switching on an LED (read ).

In order to start using the board, one needs to setup the Arduino IDE on their desktop by using the .

For more details on the different parts of the Arduino please visit the .

Arduino get started page ().

Arduino Board Anatomy page ( )

Arduino Foundations Page ( )

full introduction here
getting started user guide
Arduino foundations page
https://www.arduino.cc/en/Guide/HomePage
https://www.arduino.cc/en/Guide/BoardAnatomy
https://www.arduino.cc/en/Tutorial/Foundations
Arduino Uno (arduino.cc)
The anatomy of the Arduino board (arduino.cc)