fbpixel
Using a Rotary Encoder with Arduino

Using a Rotary Encoder with Arduino

The rotary encoder is a rotation sensor whose direction and angle can be known. Similar in appearance to the potentiometer, the encoder has no limit stroke and instead of returning a resistance value, like the potentiometer, the encoder returns two digital signals...
Using the millis() function of the Arduino IDE

Using the millis() function of the Arduino IDE

A possible solution to the problems generated by using the delay() function is to use the millis() function. From the first use of the Arduino, the delay() function is used to manage instructions as a function of time. The major problem with the delay() function is...
Using the Arduino Motor Shield

Using the Arduino Motor Shield

The official Arduino Motor Shield is an expansion board for the Arduino UNO and Mega microcontrollers for DC and stepper motor control. We have seen how to drive a DC motor using an H-bridge which can require a lot of wiring when using the IC simply. For an embedded...
Using a PCA9685 module with Arduino

Using a PCA9685 module with Arduino

The PCA9685 module is a 16-channel controller that can control 16 PWM outputs via I2C communication. It allows, among other things, to free inputs and outputs of your microcontroller and to drive up to 16 LEDs or servomotors (or any other module taking a PWM signal as...
Summary on the if statement in C

Summary on the if statement in C

The if statement is the basic conditional structure and is found in all programming languages. It allows you to execute different blocks of code according to a condition. It is the basis of many algorithms and allows a computer to make a choice based on the data sent...