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

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

Use of Expansion ports

Postby joubertmorne » Thu May 04, 2017 3:34 pm

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
Contact:

Re: Use of Expansion ports

Postby joubertmorne » Sat May 06, 2017 1:05 am

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
These users thanked the author joubertmorne for the post (total 2):
LeighM (Mon May 08, 2017 8:41 am) • Benj (Tue May 09, 2017 10:34 am)
Rating: 11.76%