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?
How to use 9g micro servo motors with actuator training board
Moderator: Benj
-
- 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
- Attachments
-
- 20190304_154428.jpg (217.19 KiB) Viewed 2694 times
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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
-
- 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
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.
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