Categories

Tutorial

ZigBeeXBee Pro S2C 802.15.4 Module
https://robu.in/how-to-configure-zigbee-xbee-pro-s2c-802-15-4-module/    XBee/XBee-PRO S2C 802.15.4 RF Modules are embedded solutions providing wireless end-point connectivity to devices. These devices use the IEEE 802.15.4 networking protocol for fast point-to-multipoint or peer-to-peer networking. They are designed for high-throughput applications requiring low latency and predictable communication timing. The XBee/XBee-PRO S2C 802.15.4 RF Module supports Read More...

 

 

Firstly we will be Connecting motors to ESC’s and will then Calibrate –

Connecting Motors to ESC – 

  • As we know, in quadcopter, 2 motors rotate in CW direction and 2 motors rotate in CCW direction.
  • Refer the image below to connect ESC to Motor.

 

  • Arrange the Motors in the given way.


Calibrating ESC’s – 

Electronic speed controllers are responsible for spinning the motors at the speed requested by the autopilot. Most ESCs need to be calibrated so that they know the minimum and maximum pwm values that the flight controller will send. This page provides instructions for calibrating ESCs

About ESC Calibration

ESC calibration will vary based on what brand of ESC you are using, so always refer to the documentation for the brand of ESC you are using for specific information (such as tones). “All at once” calibration works well for most ESCs, so it is a good idea to attempt it first and if that fails try the “Manual ESC-by-ESC” method.

** Warning **
Before calibrating ESCs, please ensure that your copter has NO PROPS on it and that the APM is NOT CONNECTED to your computer via USB and the Lipo battery is disconnected

Method 1 – Manual ESC-by-ESC Calibration

  1. Plug one of your ESC three-wire cables into the throttle channel of the RC receiver. (This is usually channel 3.)
  2. Turn on the transmitter and set throttle stick to maximum (full up).
  3. Connect the LiPo battery
  4. You will hear a musical tone than one or two beeps.
  5. After the two beeps, lower the throttle stick to full down.
  6. You will then hear a number of beeps (one for each battery cell you’re using) and finally, a single long beep indicating the end points have been set and the ESC is calibrated.
  7. Disconnect battery. Repeat these steps for all ESCs.
  8. After calibration, recheck that motors should work in coordination with throttle stick i.e as soon as the throttle stick is moved from its minimum position, motor should start rotating.
  9. Make sure that all ESC’s are calibrated and are working properly.

Method 2 – All at once ESC calibration –

  • Turn on your transmitter and put the throttle stick at maximum.

  • Connect the Lipo battery. The autopilot’s red, blue and yellow LEDs will light up in a cyclical pattern. This means the it’s ready to go into ESC calibration mode the next time you plug it in.

  • With the transmitter, throttle stick still high, disconnect and reconnect the battery.

  • For PX4 or Pixhawk, press and hold the safety button until it displays solid red.
  • The autopilot is now in ESC calibration mode. (On an APM you may notice the red and blue LEDs blinking alternatively on and off like a police car).
  • Wait for your ESCs to emit the musical tone, the regular number of beeps indicating your battery’s cell count (i.e. 3 for 3S, 4 for 4S) and then an additional two beeps to indicate that the maximum throttle has been captured.
  • Pull the transmitter’s throttle stick down to its minimum position.

 

  • The ESCs should then emit a long tone indicating that the minimum throttle has been captured and the calibration is complete.
  • If the long tone indicating successful calibration was heard, the ESCs are “live” now and if you raise the throttle a bit they should spin. Test that the motors spin by raising the throttle a bit and then lowering it again.
  • Set the throttle to minimum and disconnect the battery to exit ESC-calibration mode.

Arming the Copter – 

  • Make sure that the Transmitter and receiver are connected.
  • For Arming, hold the throttle to Extreme minimum and Yaw to Extreme left. That is the left joystick should be held for 4-5  seconds in extreme bottom right corner.
  • Now hold in this position for 4-5 seconds to Arm.
  • Blue and Red LED will blink in APM confirming the Arming.
  • If After arming, setup is left idle for 12-15 seconds, it again gets Disarmed.

TESTING

  • Ensure your transmitter’s flight mode switch is set to “Stabilize Mode”.
  • Arm your Quadcopter.
  • Give a small amount of throttle. All motors should spin at about the same speed and they should start at the same time. If the motors do not all start at the same time and spin at the same speed, the ESC’s are still not properly calibrated.
  • Disarm your copter.

For more on Calibration, you can take a look at this video – https://youtu.be/gYoknRObfOg

Connecting things together and Flying !!
https://robu.in/connecting-things-together-and-flying/In this tutorial, we will be looking on final connections to be made to make your quadcopter flying ready.   Step 1 - Solder the Input Power Cable and ESC's power cable- First of all start by soldering the esc's and the battery connector to the bottom plate. The frame we Read More...
https://robu.in/calibrating-apm-2-8-using-mission-planner/In this tutorial, we will be using - APM 2.8 flight controller - see here FlySky FS-i6 2.4G 6CH PPM RC Transmitter With FS-iA6B Receiver - see here Q450 Quadcopter Frame – PCB Version Frame Kit with Integrated PCB - see here 2212 920KV Brushless DC Motor for DJI - Read More...
https://robu.in/blinking-led-using-gpio-pins-of-raspberrypi/Hope that you should have gone through the initial raspberry pi setup as given in our previous tutorials : - ) Raspberry Pi 3 B+ have a total of 40 GPIO pins Above image properly mentions pin configuration of the Raspberry Pi 3 B+, now explaining it briefly - Voltage Pins Read More...
https://robu.in/developing-simple-gui-using-tkinter-to-control-gpios-of-raspberry-pi/Hi, Welcome to your first Graphical User Interface(GUI) tutorial with Tkinter in Python to control GPIO's of Raspberry Pi. In this tutorial, you will learn how to create a simple GUI using Tkinter. Before getting started let us explain you some terms - What Is A Graphical User Interface (GUI) ? Read More...
https://robu.in/gpio-input-output-gui-panel-using-tkinter/In this tutorial we will be Designing a Graphical panel through which we will be able to control all the 21 GPIO's of Raspberry Pi as an Input or Output Pin. Credits for the program - scotty3785, Original code link - click here Step 1 - Programming the Raspberry Pi Read More...
https://robu.in/using-ultrasonic-hc-sr-04-with-raspberry-pi/In this tutorial we will be Using Ultrasonic Sensor (SR-04) with Raspberry Pi - Step 1 - Connections - Here we will be using GPIO24 as Trigger pin and GPIO25 as Echo pin. For this, connections will be as shown - We have to connect echo pin in a Voltage Read More...
https://robu.in/installing-any-required-os-on-sd-card-for-raspberryi-pi/In this tutorial, we will get to learn about installing any official OS for any model of Raspberry Pi- The officially available OS for Raspberry Pi as on Official Website - Ubuntu MATE Snappy Ubuntu Core Windows 10 IoT Core OSMC ( Open Source Media Centre ) LibreELEC ( Just Read More...
https://robu.in/getting-started-with-raspberry-pi/Meeting the Raspberry Pi Hope that you should have purchased the Raspberry Pi 3 B+ starter kit. Now let's introduce you with the Raspberry Pi USB ports — These are used to connect a mouse and keyboard. You can also connect other components, such as a USB drive. SD card slot — Read More...
https://robu.in/using-raspberry-pi-with-laptop-as-screen-using-ssh/Hey there, in this tutorial we will be learning about how to use laptop as Display for Raspberry Pi. Laptop's keyboard and pointer will also work with it, hence will no longer need Dedicated display, mouse, and keyboard. We will be using SSH protocol and VNC server to Interface with raspberry pi. Read More...
https://robu.in/installation-of-ubuntu-mate-and-ros-kinetic-raspberry-pi-2-and-pi-3/In this document, we will guide you on How to Install Ubuntu MATE 16.04.2 LTS and ROS Kinetic on Raspberry Pi.     Step1: Download the image for Ubuntu MATE Official Download Link for Ubuntu MATE for Raspberry Pi https://ubuntu-mate.org/download/ It comes packaged as an XZ archive so use 7 Zip Read More...
https://robu.in/run-rotary-encoder-arduino-code/A rotary encoder is a device that you can rotate infinitely. Simple ones like this one have no real state like a pot does, so when you start up, you won’t be able to simply read from the encoder where it is turned to. But because you can keep turning Read More...
https://robu.in/quadrature-encoder/1.0 Introduction A typical rotary incremental encoder consists of a light-emitting diode (LED), a disk, and a light detector on the opposite side of the disk (see next figure). The disk, which is mounted on the rotating shaft, has patterns of opaque and transparent sectors coded into the disk. As Read More...