Use of Expansion ports

For Formula AllCode users to discuss projects, programs, and any other issues related to the Formula AllCode robotics platform.

Moderators: Benj, Mods

Post Reply
joubertmorne
Posts: 4
Joined: Tue May 02, 2017 9:57 pm
Has thanked: 1 time
Been thanked: 2 times

Use of Expansion ports

Post by joubertmorne »

I have hit a brick wall with my project and I hope someone can help me.

My setup is as follows:

16F1937
EB024 Bluetooth Board
EB014 Keypad
EB005 LCD Board
Formula Allcode

I have been tasked to program a Microcontroller with a script that controls a Formula allcode robot. I was successful in doing this.

Next, I am required to fire a laser (which will be attached to the robot) for 1 second when an input is received from the keypad (attached to the microcontroller). My thoughts are to make use of a combination of the expansion ports and a transistor/relay as 5V is available on both expansion and servo port.

Any help would be much appreciated.

joubertmorne
Posts: 4
Joined: Tue May 02, 2017 9:57 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Use of Expansion ports

Post by joubertmorne »

The solution was to make use of the E-Blocks Header which has pins that activate when the corresponding LED is lit. In my case, the transistor switch circuit was activated through pin E0 which toggles with LEDon/off (0). :D

Post Reply