Tuesday, December 2, 2014

Development of FPV Quadcopter

First trial in developing quadcopter

Parts required:
  1. 4pcs of Brushless motor 1000KV
  2. 4pcs of Electronic Speed Controller (ESC) 30A
  3. Quadcopter frame (3D printer)
  4. 6045 blade propeller (6 inch)
  5. LIPO 2200 mA 20C battery
  6. Arduino UNO
  7. Potentiometer
  8. Jumper Wire
This is just trial to lift an empty frame, without any loading.

Arduino's Coding
// Need the Servo library
#include <Servo.h>
// This is our motor.

Servo myMotor;
//int val = 50;
// This is the final output
// written to the motor.
String incomingString;
int val,oldval;

// Set everything up
void setup()
{
   Serial.begin(9600);

// Put the motor to Arduino pin #9
myMotor.attach(9);
Serial.println("initializing");

// Required for I/O from Serial monitor
int val = analogRead(0);
int oldval = val;

// Print a startup message
}

void loop()
{
   val = analogRead(0);
   if (val != oldval)
 {
   oldval = val;
   int laju = map(val,0,1023,0,180);
   myMotor.write(laju);
   oldval = val;
   Serial.println(laju);
   delay(500);
  }

Sunday, October 12, 2014

Solar charger

Parts required:
1.Solar panel
2.Battery casing
3.Blocking diode
4.Project box
5.Soldering tools

Steps:
1.Drill two holes on the project box
2.Solder both wires for positive n negative  pole
3.In positive pole, connect with blocking diode to prevent from reverse current flow
4.Connect to battery casing
5.Place the battery into their casing
6.Place the project box under sun light

Friday, August 22, 2014

RTC1307 Module

  1. Firstly, Set time for RTC - get time from the computer and set to RTC
  2. Then run RTC_ClockDisplay.h to display the time from RTC
  3. Read from Serial monitor OR
  4. Add lcd1602 for display

Real Time Clock (RTC) I2C
The price is RM19 including postage
If you want to buy it, whatsapp me: 013-5817878

How to shrink your project using Attiny85

  1. MUST USE ARDUINO IDE 1.0.5 !!!!
  2. Download library for aTtiny45/ATtiny85
  3. Change the folder name to hardware and save in Arduino directory
  4. Run example --> ArduinoISP code
  5. Please select the right board and com port
  6. Assemble the circuit as Figure below
  7. Select ATtiny85 (1 MHz) internal oscillator as a board type
  8. Upload the code
  9. Ignore all the errors.
  10. Done!! Enjoy it


Monday, August 18, 2014

Laser Pointer Module

Ground

Empty

Digital Pin







For coding you can used blink code in the example
Go to your IDE software, then click
File > Examples > 01.Basics > Blink

How to change HC-06 Bluetooth Module Setting

  1. Connect bluetooth HC-06 via FTDI Basic
The connection between Bluetooth and FTDI are as follows:
RX --> TX

TX --> RX
VCC --> VCC(5V)
Gnd --> Gnd
  1. Choose correct COM Port
  2. Open Serial
  3. Choose "New line ending"
  4. Type AT then send --> OK
  5. Type AT+NAMEdevicename --> Oksetname (20 character)
  6. AT+PIN4321 --> change password (4digit)
  7. AT+VERSION --> check the bluetooth version
  8. AT+BAUD4 --> change baudrate (see table below)