Control several Motors with Raspberry Pi and the MotorHAT

Control several Motors with Raspberry Pi and the MotorHAT

To control a motor, whether stepping or direct current, with a Raspberry Pi, it is necessary to add an integrated circuit like an H-bridge. To simplify the assemblies, there are shields like for Arduino , called HAT (hat) at Raspberry. We will see how to communicate...
Power measurement with Arduino and INA219

Power measurement with Arduino and INA219

The INA219 Sensor is a current and voltage sensor for easy measurement of power. In some applications, it is interesting to measure the electrical power exchanged between devices. For example, measuring the power recovered by a solar panel. We will see in this...
Control your project using an IR remote

Control your project using an IR remote

There are different ways to communicate with a system. One of the most used, especially with television, is the infrared remote control. We will see how to drive an Arduino using a receiver and an IR remote control. In this tutorial, we use an IR remote control...
Connect Arduino to the Web using Ethernet Shield W5100

Connect Arduino to the Web using Ethernet Shield W5100

Connection between Arduino and internet is possible with the Ethernet Shield W5100. The basis for creating connected objects, is to connect them over a network such as the WiFi network. Communication via the Ethernet network is very convenient when you want to connect...
Create audio files for Arduino

Create audio files for Arduino

It is possible to play sounds through a speaker with an Arduino board and an SD card module. The TMRpcm.h library allows you to manipulate audio files but does not read all types of files. We are going to see a method to convert or create audio files compatible with...
Remote connection to Raspberry Pi

Remote connection to Raspberry Pi

The Raspberry Pi is a very powerful tool offering many functionalities. One of them is the remote connection which makes it a favorite tool for connected objects or IoT. To configure the Raspberry on its first use, it is practical to have a screen with an HDMI port, a...
Connect your Raspberry Pi 3 to WiFi

Connect your Raspberry Pi 3 to WiFi

The Raspberry Pi 3 Microcontroller is a very powerful mini computer and one of the most important features is that it incorporates a Wifi chip and can connect to a wireless network. It is the first step to access the potential of the Raspberry Pi and the first step...
Modulate the color with the RGB LED

Modulate the color with the RGB LED

The RGB LED provides a wide range of colors. It is composed of three mini LEDs, red, green and blue (hence their name RGB); close enough for their lights to mix. Therefore, it is piloted in the same way as three independent LEDs. For instance, it can be used to create...
Control several motors with Motor Shield V2 and Arduino

Control several motors with Motor Shield V2 and Arduino

The Motor Shield V2 is an expansion board for microcontrollers Arduino UNO and Mega to control DC and stepper motors. For motor control, it is possible to use integrated circuits directly but their use requires significant wiring can quickly become unmanageable. To...
Improve your Arduino program

Improve your Arduino program

Memory space is limited on an Arduino board, it may be important to improve your Arduino program in order to avoid certain problems. The more we advance in programming, the more we come to write long and complex programs. It is important, as soon as possible, to take...
Control several motors with Motor Shield V1 and Arduino

Control several motors with Motor Shield V1 and Arduino

The Motor Shield V1 is an expansion board for Arduino UNO and Mega microcontrollers for DC and stepper motor control. We have seen how to control a DC motor using H bridge which may require a lot of connections when using the simple integrated circuit. In an embedded...
Management of a push button with Arduino

Management of a push button with Arduino

One of the most common examples when learning programming with Arduino is the management of a push button. Indeed, one of the most useful functions to develop is to be able to interact with the Arduino board. The most minimalist interface is a push button input and...
Manage multiple Arduino with an I2C bus

Manage multiple Arduino with an I2C bus

It can be practical, especially in home automation projects, to communicate between several devices. One of the commonly used techniques is the I2C (or TWI) protocol. The I2C protocol is a method which makes it possible to connect several “Master” cards and several...
Give voice to your Arduino project

Give voice to your Arduino project

To make your Arduino project more interactive, it can be fun to make sounds based on certain actions. In this tutorial, we will see how to play a WAV audio file saved on an SD card with Arduino Prerequisite:Read and write on an SD card , Create or modify an audio file...
Using a LCD16x2 Screen with Arduino

Using a LCD16x2 Screen with Arduino

One element that displays the most used in the world is information Arduino liquid crystal display (Liquid Crystal Display) LCD 16×2. When an electronic system is made, it may be interesting as it gives us some information about his condition without having to...
Using a distance sensor GP2Y0A21 with Arduino

Using a distance sensor GP2Y0A21 with Arduino

The sensor GP2Y0A21 is an infrared distance sensor from Sharp that can detect object located at a distance between 10 and 80cm in front of it. Hardware Computer ArduinoUNO USB A/B GP2Y0A21 Operating principle The distance sensor GP2Y0A21 uses infrared light to...
Program a NodeMCU with Arduino IDE

Program a NodeMCU with Arduino IDE

A large number of microcontrollers such as NodeMCUs can be programmed with the Arduino IDE. Arduino boards are powerful and very practical for learning and carrying out projects, with an extremely large mutual aid community. However, there are other microcontrollers...
Using a RFID module with Arduino

Using a RFID module with Arduino

The RFID module is a smart card reader which allows among others, to activate a mechanism when the correct card is presented to the reader. We will use here the RC522 module, which is the most common. Hardware Computer ArduinoUNO USB Cable Module RFID Dupont Cable M/F...
Using a Potentiometer with Arduino

Using a Potentiometer with Arduino

The potentiometer is a variable resistor which is used to vary the voltage at its terminals. It is used in several applications including set a value: adjust the brightness of a light, adjust the volume of a speaker, change the position of a servomotor, etc. Hardware...
Luminosity measurement with a photoresistor

Luminosity measurement with a photoresistor

A photoresistor is an electronic component that measures ambient light. This component is useful in some projects such as a solar panel light follower or home automation to create a smart lamp that only turns on when it is dark or to set up an alarm with a laser...
Read and write on a SD card with Arduino

Read and write on a SD card with Arduino

One of the weak spot of the Arduino is the memory space. When playing with data (saving measurement, reading or writing to a file, etc.), it is necessary to have lot of space available. You can easily add memory to the Arduino with a Secure Digital card or SD card....
Program your Raspberry Pi with C/C++

Program your Raspberry Pi with C/C++

Ressources for Raspberry PI are generally written for Python but, as a micro computer, other languages can be used. If you know C/C++ ( If you come from the Arduino world, for instance) and don’t want to bother learning another computing language, it is possible...
Command a serial controller Maestro with Raspberry Pi

Command a serial controller Maestro with Raspberry Pi

When dealing with several servomotors and an extra number of outputs is needed to operate your robot (to control Hexana, for instance), a practical solution is to use a serial controller such as the Mini Maestro from Pololu. Prerequisite: Programming on Raspberry Pi,...
Control a DC Motor with Raspberry Pi

Control a DC Motor with Raspberry Pi

One of the main objectives in robotics is to make things move on their own. To give motion to a robot, electrical motors are oftenly used such as direct current (DC) motors especially for mobile robots. In this tutorial, we will see how to control such a motor using...
Control a stepper with RaspberryPi

Control a stepper with RaspberryPi

Steppers are used when high precision is required with open-loop control. We’ll see how to program your Raspberry Pi to control a stepper motor. Prerequisite: Programming with Raspberry Pi Material Screen HDMI cable Keyboard Raspberry PI 3 (with OS on micro SD)...
Create a component in Fritzing

Create a component in Fritzing

When working on an electronics project, it’s a good idea to put your ideas on paper to make sure you do not forget anything before implementation. This allows you to verify the concept and to share a clear representation of your work with other interlocutors...
Arduino and Bluetooth module HC-05

Arduino and Bluetooth module HC-05

Arduino can communicate with other devices via Bluetooth using the module HC-05 (master/slave). It enables the Arduino to connect and exchange data with other devices such as Smartphone, computer or other microcontrollers.Bluetooth communication can be used to control...
Command a serial controller Maestro with Arduino

Command a serial controller Maestro with Arduino

When dealing with several servomotors and an extra number of outputs is needed to operate your robot (to control Hexana, for instance), a practical solution is to use a serial controller such as the Mini Maestro from Pololu. Prerequisite: Programming with Arduino,...
Build a simple servomotor driver

Build a simple servomotor driver

To control a large number of servomotors with Arduino, or other microcontroller, a servomotor driver need to be used in order to power and to send the PWM signals to the Servomotors. Several methods can be used such as using a breakout shield or a serial servo...
Control a servomotor with RaspberryPi

Control a servomotor with RaspberryPi

One of the main objective in robotics is to make things move. A way to do that is to use servomotors. In this tutorial, we’ll see how to program your Raspberry Pi to control such a device. Prerequisite: Programming with Raspberry Pi Material Screen HDMI cable...
Control 3 LEDs with Arduino and one pushbutton

Control 3 LEDs with Arduino and one pushbutton

  One of the easiest and quickest way to start learning programming and electronics with Arduino is to use LEDs. We’ll see here how to control LEDs and how to select different functionalities of the code using only one button. This summarize in a simple way what...
Create an app with App inventor 2

Create an app with App inventor 2

Learn how to create an application for Android very simply using App Inventor 2. In the fields of robotics and connected objects, one of the most interesting features to implement is the remote control of an electronic project. Whether to display measurements from his...
Arduino and Bluetooth module HC-06

Arduino and Bluetooth module HC-06

Arduino can communicate with other device via Bluetooth using the module HC-06 (slave).  It enables the Arduino to be connected and exchange data with other devices such as Smartphone, computer or other microcontrollers. Bluetooth communication can be used to control...
Control a stepper motor with Arduino

Control a stepper motor with Arduino

One of the main objectives in robotics is to make things move on their own. To give motion to a robot, electrical motors are used such as stepper motors especially when precision is required with an open-loop control. prerequisite: Programming with Arduino   Material...
Temperature and humidity measurement with sensor DHT11

Temperature and humidity measurement with sensor DHT11

The sensor DHT11 can measure temperature and humidty in a room. Here is a tutorial on how to retrive the sensor measurement with a Arduino board. Material Computer Arduino UNO USB cable sensor DHT11 Jumper cables male/male breadboard Wiring DHT11 Code The program to...
Distance measurement with sensor HC-SR04

Distance measurement with sensor HC-SR04

The HC-SR04 is an ultrasonic sensor that measures distance with ultrasound waves. It uses the same principle as a sonar which is sending a sound wave and measuring the time between the transmission and reception of its echo. Material Computer Arduino UNO USB cable to...
Temperature measurement with LM35

Temperature measurement with LM35

The temperature sensor LM35 is a small easy to use, easy to find device. Its output voltage is directly proportional to the temperature and gives a precise measurement. Material Computer Arduino UNO USB cable to connect Arduino to the computer Temperature sensor LM35...
Communicate with Arduino

Communicate with Arduino

The easiest way to communicate with Arduino is to use the serial port. It is also the most powerful tool to test and debug your code. Material Computer Arduino UNO x2 Jumper cable M/M x3 Communication with the Serial Monitor The functions from the Serial library to...
Programming with Raspberry Pi

Programming with Raspberry Pi

Material Computer Screen HDMI cable Keyboard Raspberry PI 3 Micro SD card Mouse Charger micro USB B   Software installation Download the offcial Raspbian installer NOOBS on the Raspberry PI website. Once the ZIP file downloaded, extract the files in a folder NOOBS....
Control a DC motor with Arduino

Control a DC motor with Arduino

One of the main objectives in robotics is to make things move on their own. To give motion to a robot, electrical motors are oftenly used such as direct current (DC) motors especially for mobile robots. In this tutorial, we will see how to control such a motor using...
Using a distance sensor GP2Y0A21 with Arduino

Give senses to your robot

Un robot está constituido por cuatro componentes principales: Motores para el movimiento, Mecánica para mantener las piezas unidas, sensores para que reaccionen al entorno y un código para controlarlas y crear la funcionalidad deseada. Sensors plays an important role...
Control a Servo with Arduino

Control a Servo with Arduino

One of the main objective in robotics is to make things move. A way to do that is to use servomotors. In this tutorial, we’ll see how to program your Arduino to control such a device and we’ll learn how to use libraries especially Servo.h. Prerequisit:...
Improve your Arduino program

Programming with Arduino

One of the most used tool in the world of Makers to learn or create personal project is the Arduino board. This tutorial explains how to install and use the Arduino programming software. Material Computer Arduino board Software installation Download the latest version...