Bukit Mertajam, Penang

Robot Antenna

Introduction

I have this paper robot and I want it to look fancy by adding an LED on his head. Hihi. So I decided to make this antenna and adding a sound to it using Raspberry Pi.

Video

This is the video for this project.

Hardware Preparation

This tutorial use :

  1. Raspberry Pi 3B+
  2. Speaker
  3. Red LED
  4. 220 ohm Resistor
  5. Female to Female Jumper Wire
  6. Micro B USB

You can make the hardware connection based on the diagram and table below.

Connection
SpeakerRaspberry Pi : Audio Jack
Red LED (+)Raspberry Pi : GPIO 17
Red LED (-)Raspberry Pi: GND with Resistor
Figure 1 : The GPIO Connection
Figure 2 : Wiring The LED

Software

This project is using Scratch 2.0 with GPIO support.

Figure 1 : Scratch 2.0

Sample Code

This is the sample code used for this tutorial. Try it!

Figure 4 : The Sample Code

The Iron Man

This is the image for the Iron Man paper craft. Kindly download it here.

Reference :

  1. I took an example from this page. You can always check this page as it provides many tutorial starting from beginner to advance.

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

Leave a comment

Loading...