Arduino category

Using a Hall Effect Sensor with Arduino

Hall Effect Sensor

Hi guys, welcome to today’s tutorial. Today we will look at how to use a hall effect sensor with Arduino.

A hall effect sensor is a sensor that varies its output based on the presence or absence of a magnetic field. This means that the output signal produced by a Hall effect sensor is a function of magnetic field density around it. When the magnetic flux density around it exceeds a certain pre-set threshold value, the sensor detects it and generates an output voltage sometimes called the hall voltage to indicate the presence of the magnetic field.

Hall sensors are becoming very popular due to their versatility and they are used in many different applications. One of the popular applications of hall effect sensors is in automotive systems where they are used to detect position, measure distance and speed. They are also used in modern devices like smartphones and computers and also used in different type of switches where the presence of a magnetic field is used to either activate or deactivate a circuit.

Using a Hall Effect Sensor with Arduino – [Link]

Arduino board based on ATmega644p

A DIY Arduino type hardware board based on ATmega644p Atmega1284p

This project is free and based on @MCUDude’s MightyCore which has awesome well designed kits for serious development with AVR’s.

Mightyduino is an Arduino with more memory than an Arduino Pro mini. It can use 644p (64k) or 1284p (128k) chips. Its voltage can be configured by U1 and the frequecy can be configured by the Murata’s ressonator (crystal). It has a power led and another one connected to pin D0. The push button performs reset. DTR pin can be used to external reset. The RAW pin is the input voltage <16v. The VCC pin is the regulator output and IC voltage, it can be loaded up to peak of 500mA.

Arduino board based on ATmega644p – [Link]

PID temperature control with Arduino

PID temperature control with Arduino UNO.

If you want to keep something at a certain temperature, say a block of aluminum, you’ll need a thermocouple and some sort of heating element. While you could turn a heater on and off abruptly in a sequence appropriately known as “bang-bang,” a more refined method can be used called PID, or proportional-integral-derivative control. This takes into account how much the temperature is outside of a threshold, and also how it’s changing over time. [via]

PID temperature control with Arduino – [Link]

Color Detector Using TCS230 Color sensor and Arduino

TCS230 Color Sensor

Hi guys, welcome to today’s tutorial. In this tutorial we will look at how to use the TCS230 color sensor with Arduino. To demonstrate the ability of the color sensor, we will build a color detector system capable of detecting the color in front of the sensor and displaying that color on a TFT Display.  For this project, we will use the TCS230 color sensor and the color will be displayed on the ST7735 1.8″ TFT Display.

The TCS230 is a programmable color light-to-frequency converter which combines configurable silicon photodiodes and a current-to-frequency converter on a single monolithic CMOS integrated circuit.

The color sensor module is made up of the color sensor itself and four Infrared LEDs which are used to illuminate any object placed in front of the sensor to ensure the readings are accurate and are not affected by the surrounding illumination. The sensor is made up of an array of photodiodes with color filters for red, blue, green and a clear filter on top.

Color Detector Using TCS230 Color sensor and Arduino – [Link]

Using the 1.44″ Color TFT display (ILI9163C) with Arduino

ILI9163C 1.44″ TFT Display

Hi guys, over the past few tutorials, we have been discussing TFT displays, how to connect and use them in Arduino projects, especially the 1.8″ Colored TFT display. In a similar way, we will look at how to use the 1.44″ TFT Display (ILI9163C) with the Arduino.

The ILI9163C based 1.44″ colored TFT Display, is a SPI protocol based display with a resolution of 128 x 128 pixels. It’s capable of displaying up to 262,000 different colors. The module can be said to be a sibling to the 1.8″ TFT display, except for the fact that it is much faster and has a better, overall cost to performance ratio when compared with the 1.8″ TFT display. Some of the features of the display are listed below;

  • Size: 1.44 inch
  • Interface: SPI
  • Resolution: 128*128 pixel
  • Visual area: 1:1 square
  • TFT color screen, the effect is far better than other small CSTN screen
  • Drive IC: ILI9163
  • Fully compatible and alternative 5110 interface
  • Onboard LDO, support 5V/3.3V input voltage, the LED backlight, 3.3V input

For this tutorial, we will focus on demonstrating how to use this display with Arduino to display texts, shapes and Images.

Using the 1.44″ Color TFT display (ILI9163C) with Arduino – [Link]

Introduction to DigiSpark – A Smaller, Cheaper and Powerful Arduino board

The Digispark board is one of the smallest Arduino boards ever produced and is copyrighted by Digistump LLC. Although it is tiny, it is also very powerful and powered by an ATTINY85 chip clocked up to 16.5Mhz (about the same speed as Arduino Uno boards). So Digispark is simply a microcontroller board based on an ATTINY85 MCU that can be programmed using the Arduino IDE. The Digispark is similar to the Arduino line mostly in regarding the programming way, it is cheaper, smaller, and quite powerful.

DigiSpark Development Board
DigiSpark Board

Just as most Arduino boards come with a USB port for programming and sometimes as source of power, Digispark comes with an onboard USB connector that can be plugged directly into a computer for programming of the device. The board can be powered via the USB port which will feed 5V to the board or from an external source via its VIN pin that can accept ~7 to 35V which will be regulated down to 5V through an onboard 78M05 voltage regulator.

Digispark is measured at 25mm by 18mm and comes with 6 GPIO pins for input and output. Three of those pins are capable of PWM and 4 of them capable of ADC. It also comes with 2 LED indicators, 1 for indicating power while the other is connected to either pin 0 or pin 1 depending on the type of board purchased. It comes with 8k Flash Memory and about 6k left after the addition of the bootloader, this is relatively small as compared to the 32K on the Arduino UNO but it’s fine for small to medium-sized projects.

DigiSpark PinOuts

One of the great advantages of using the Arduino boards and platform is the ability to use the inbuilt Serial to print out messages to the Arduino Serial monitor, a tool that is very handy for debugging. Unfortunately, the ATTINY85 which is found on the DigiSpark board cannot support the Serial library used in Arduino, but can technically support SoftwareSerial using some hack around. Anyway, engineers at Digispark devised another user interface option which aids as a serial monitor.

Getting Started With DigiSpark

The Digispark runs the “micronucleus tiny85” bootloader version 1.02, an open source project. Of course, you don’t need to worry about burning the bootloader since the Digispark already comes with the bootloader pre-installed, but you will have to burn the bootloader yourself if you want to build your own Attiny85 digispark clone.

Furthermore, DigiSpark uses USB to communicate with the computer, so you should install the DigiSpark USB driver. To do this, you must download Arduino for Digispark which come with USB driver and extract the file (DigisparkArduino-Win32-1.0.4-March29.zip) to any folder, then execute DigisparkArduino– Win32\DigisparkWindowsDriver\InstallDriver.exe to start installing the USB driver.

Digispark is highly recommended to be used with the Arduino IDE 1.6.5+ and the Arduino 1.6.6 or 1.6.7 are not recommended. Make sure you have the Arduino IDE already installed. If you don’t have it already you can download it from the Arduino Website.

To start programming and working with Digispark, watch the full video below. If you are stuck or need some help, you can visit the tutorial page from Digispark here.

Digispark is a great way to jump into electronics, or perfect for when an Arduino is too big or too much. DigiSpark is available for purchase on the DigiStump website at a price of $7.95 and currently sold out and restocking will begin from May 2018. If you are like me that don’t like waiting that long, you can get a DigiSpark board for a relatively lesser price than the $7.95 from Aliexpress at about $1.7 or can be purchased on eBay as well.

4 Channel Relay Shield for Arduino UNO

4 Channel Relay Shield for Arduino UNO is a simple and convenient way to interface 4 relays for switching applications in your project. Very compact design that can fit on top of Arduino UNO. Project requires 12V DC supply, all 4 trigger inputs require TTL signal, Relay-1 to Relay-4 inputs connected to D8 To D11 of Arduino digital pins through solder jumpers J1 To J4. All trigger inputs can be connected to other I/O pins of Arduino using female header connectors and you will need to open solder jumpers J1-J4 in this case.  D1, D2, D3, D4 LEDs provided to indicate the Relay ON/OFF status. D5 is Power LED. Each relay has 3 pin screw terminals with normally open/normally closed switch to connect the load. Project is ideally used for low voltage applications and requires extra care in case of using high voltage AC switching.

Features

  • Input supply 12 VDC @ 170 mA ( Arduino DC Jack)
  • Output four SPDT relay
  • Relay specification 7A/24V DC-230V AC
  • Trigger level 2 ~ 5 VDC
  • Header Connector for connecting power and trigger voltage
  • Solder Jumpers J1, J2, J3, J4 Interface Arduino Pins D8, D9, D10, D11
  • LED on each channel indicates relay status
  • Power Battery Terminal (PBT) for easy relay output
  • PCB Dimensions 68.37MM x 51.91 MM

4 Channel Relay Shield for Arduino UNO – [Link]

Arduino Real Time Clock with Temperature Monitor

Hi guys, in one of our previous tutorials, we built a real-time clock with temperature monitor using the DS3231 and the 16×2 LCD display shield. Today, we will build an upgrade to that project by replacing the 16×2 LCD display with an ST7735 based 1.8″ colored TFT display.

Apart from changing the display, we will also upgrade the features of the project by displaying the highest and lowest temperature that has been measured over time. This feature could be useful in scenarios where there is a need to measure the maximum and minimum temperature experienced in a place over a particular time range.

This tutorial is based on the ability and features of the DS3231 RTC module. The DS3231 is a low power RTC chip, it has the ability to keep time with incredible accuracy such that even after power has been disconnected from your project, it can still run for years on a connected coin cell battery. Asides from its ability to accurately keep time, this module also comes with an accurate temperature sensor which will be used to obtain temperature readings during this tutorial.

Arduino Real Time Clock with Temperature Monitor – [Link]

Arduino Yùn Rev.2 is here!

Arduino just announced a new Yun v2 Board with improvements over the older brother. From the Arduino blog:

What’s New in Rev.2

Hardware:

  • Much better, more robust power supply
  • New Ethernet connector with a clever mounting solution that enables the use of all possible shields with no risk for accidental short circuits
  • Horizontal USB connector to save vertical space
  • Improved USB hub

Software:

  • Software stack updated to OpenWRT latest version, including all patches
  • SSL support on the bridge Arduino / Linux bridge

Arduino Yùn Rev.2 is here! – [Link]

MP3 player using Arduino and DFPlayer mini

Hi guys, welcome to this tutorial. Today, we will build an mp3 player using an Arduino and the DFPlayer mini MP3 module.

The DFplayer mini is a small, low-cost mp3 module with a simplified audio output that can be connected directly to a speaker or an earphone jack. The module can be used as a stand-alone module with attached battery, speaker, and push buttons or used in combination with a microcontroller or development board like the Arduino, enabled for RX/TX (Serial) communication, thus through simple serial commands we can play music and perform other functions like playing the next and previous song, shuffle, pause the song currently being played etc. The module comes with an SDcard slot and supports both FAT16, FAT32 file system.

MP3 player using Arduino and DFPlayer mini – [Link]