Catduino Project 1

Measuring Distance

Necessary materials;

  • Ultrasonic Distance Sensor

  • Catdunio

  • mBlock HC-SR04 Ultrasonic Sensor PCM extension

In this project, we will measure distance using ultrasonic distance sensor without using any wiring.

First, let's install the ultrasonic distance sensor in the location specified in Catdunio.

(Warning: do not make any other connections to D9 and D10 pins as our ultrasonic distance sensor will use these pins.)

 

We used our green block twice. Under the operators section:

We write "Distance:" on the left side of one of the blocks and drag the "HC-SR04 Check distance" block to the right. We drag the first green block we created to the left of the second green block, and write "cm" to the right.

 

That is all! Now, we can see the distance measured by the ultrasonic distance sensor in centimeters through the serial port using Arduino IDE.

Catduino Project 2

DC motor

Necessary materials;

  • 2 DC Motor

  • Catdunio

  • 6pcs female male jumper cables

  • Power Source (Battery etc.)

  • mBlock "L298n" extension

In this project, we do not need an L298N motor driver as there is a motor driver in Catduino.

First we should do the wirings shown at the schema.

ENA - D3                ENB - D10

IN1 - D7                  IN3 - D11

IN2 - D8                  IN4 - D12

Then, let's connect our DC motors to M1 and M2 motor inputs and upload our code.

 

After the code is loaded, let's disconnect the USB cable from the device and run the Catduino with another power source (battery, etc.). Our motors will start spinning.

Catduino Project 3

Servo Control

Necessary materials;

  • Servo motor

  • Catdunio

In this project, we will control a servo motor with Catduino.

First, we connect our servo to the pins which are specified as SERVO1 but we need to make sure that brown(ground) cable of our servo alligns with the GND text below pins on the board. 

(Warning: do not make any other connections to D2, D3 and D4 pins as servo motors will use these pins of our board.)

 

 

Next, let's upload our code. You can change the angles between 0-180 degrees.

Catduino Project 4

LED Control with Bluetooth

Necessary materials;

  • Bluetooth Module

  • Catdunio

  • Serial Bluetooth Terminal application (to connect via bluetooth.)

  • mBlock Bluetooth HC-05 PCM extension

  • Power Source (Battery etc.)

In this project, we will control the LED on the Catduino board with bluetooth using a bluetooth module.

First, let's attach our bluetooth module to the place specified in Catduino.

Then upload our code.

After uploading our code let’s remove the USB cable and run Catduino with another power source(battery etc.). Then find HC05 from the Bluetooth menu on our phone or on our pc and pair them(password is “1234” or “0000”). Start the “Serial Bluetooth Terminal” application which we downloaded to our phone.

Open the top left menu and find “Devices”

Connect to HC-05

 

When we send command “1”, the LED will turn on. When we send command “2”, the LED will turn off.

Catduino Project 5

Catduino Android App

Necessary materials;

  • Catdunio

  • Servo Motor

  • DC Motor

  • Bluetooth Module

  • Ultrasonic Distance Sensor

  • Android Smartphone / Tablet

  • 3pcs female male jumper cables

  • Power Source (Battery etc.)

In this project, we will be able to control all units that we attach to Catduino via bluetooth with our phone.

First, let's download the files mentioned in the link above. Next, install the APK file on our phone.

Now pair with bluetooth module as in the LED control project via Bluetooth. Then upload the code we downloaded using the Arduino IDE interface to our card.

Let's connect the servo motor to the SERVO 3 section of Catdunio, our Ultrasonic Distance Sensor to the Ultrasonic Sensor section, our bluetooth module to the BLUETOOTH section, and the ENA, IN1 and IN2 pins of the MOTOR1 to the D3, D7 and D8 pins respectively with our jumper cables.

Then power the Catduino with another power source (battery etc.) and open our APK.

Enter the "Device List" at the top and select HC05.

After the connection is established, you will see the green "Connected" text at the bottom left.

Then you can do whatever you want with the app. All you have to do is to click the button with corresponding section's name on it first, then change its properties.

For example, to turn off the LED while the motor is spinning, first press the LED button and then the LED off button.

Have fun.

Quick Access

Follow Us

  • Facebook
  • Twitter
  • YouTube
  • Instagram

Copyright @ 2019-2020 ALPGEN Robotics 

0