How to use 9g micro servo motors with actuator training board

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
j.zielinski1999
Posts: 7
Joined: Mon Jan 21, 2019 7:21 pm
Has thanked: 1 time
Contact:

How to use 9g micro servo motors with actuator training board

Post by j.zielinski1999 »

Hi, I'm trying to program some 9g micro servo motors using the Matrix actuator training panel and the PIC16F1937 microcontroller with the E blocks development board. I want to control 5 servos with the potentiometer on the e blocks development board but just cannot figure out how to do it at all.

Any help please?
Attachments
20190304_154428.jpg
20190304_154428.jpg (217.19 KiB) Viewed 2694 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to use 9g micro servo motors with actuator training board

Post by Benj »

Hello,

The Actuators switch needs to be in the Off position for the servo motor headers to be active. The PSU should be set to 5V or 6V.

Please can you send your Flowcode project so far and we will help get you back on the right track.

j.zielinski1999
Posts: 7
Joined: Mon Jan 21, 2019 7:21 pm
Has thanked: 1 time
Contact:

Re: How to use 9g micro servo motors with actuator training board

Post by j.zielinski1999 »

Hi, thanks for getting back to me. I have attached the program that I have produced on flowcode 7. I'm not sure whether it is correct because I'm new to this really. I have used a switch command because I need to control multiple servos so therefore I thought I could use a switch to be able to press different buttons on port a or port b to switch between controlling each of the servos if that's makes sense.
Attachments
Micro servo program2 (1).fcfx
(14.34 KiB) Downloaded 216 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: How to use 9g micro servo motors with actuator training board

Post by medelec35 »

Before compiling to Chip, you need to change target device from 16F877A to 16F1937.
To do that, select BUILD, Project Options.
Select Choose a Target tab.
As you are using EB006, for the 16F1937 there is no need to set up configuration settings as they are pre-set for 16F1937.
Martin

Post Reply