Wireless servo controller

servo_headerToday, I focussed on another example from IQRF Startup package – Servo control. You will find this example inside Advanced examples of Startup package. You can use this user code together with ADC example described earlier and make automatic wireless control device.

What you need:

Let’s move servo

  1. Make a new IQRF project
  2. Copy attached source file, header files folder and macro file into a common directory.
  3. Add source file to project.
  4. Build project and upload to TR.
  5. Make wiring (VCC of servo – probably red wire to DK-EVAL-04 pin 10, GND of servo – probably black or brown to DK-EVAL-04 pin 7, PWM input of servo to DK-EVAL-04 pin 5.)
  6. Insert TR module to DK-EVAL-04.
  7. Power-up DK-EVA-04 by wall adapter or from PC. This action is necessary!!!
  8. Import macro to IQRF IDE.
  9. Connect CK-USB-04 with inserted TR and uploaded SPI E03-TR example.
  10. Set “Use Numbers” inside Terminal to checked mode.
  11. User macros and send button to servo steering.
  12. Enjoy…

Wires color depends on servo type and manufacturer. Please refer documentation.

servo_foto

Download Attachments

  • zip servo.zip
    Servo controller project package
    File size: 33 kB Downloads: 246
  • c TR_servo.c
    Servo controller source code
    File size: 4 kB Downloads: 285

Leave a Reply

Your email address will not be published. Required fields are marked *