Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Turning LEDs on with a spike while disabled (http://www.chiefdelphi.com/forums/showthread.php?t=135863)

GuyM142 17-03-2015 11:07

Turning LEDs on with a spike while disabled
 
Is it possible to do that?
I would like to check if the vision processing works through the dashboard before the match starts, but I would like to turn them off while not in autonomous.

notmattlythgoe 17-03-2015 11:08

Re: Turning LEDs on with a spike while disabled
 
Quote:

Originally Posted by GuyM142 (Post 1458740)
Is it possible to do that?
I would like to check if the vision processing works through the dashboard before the match starts, but I would like to turn them off while not in autonomous.

I don't believe this is possible since all actuators are turned off while disabled.

Tungrus 17-03-2015 11:27

Re: Turning LEDs on with a spike while disabled
 
In the past we have been connecting LEDs (monochromatic, ring type) to PD directly and it stays on as long as power is turned on. Once dashboard is connected to FMS, the camera feed will be available.

Ben Wolsieffer 17-03-2015 11:32

Re: Turning LEDs on with a spike while disabled
 
If you really need to be able to turn them on and off, you can make a simple circuit with a transistor and use a digital output to control it.

Jpatterson1710 17-03-2015 12:05

Re: Turning LEDs on with a spike while disabled
 
You could use addressable LEDs, and control them with an Arduino. The RoboRIO can output information to different input pins in the Arduino, and use those combinations to set the information sent to the LEDs.
Example:
If no pins receive input, set LEDs to X (Thats Disabled)
If pin 1 receives input set LEDs to Y
If pin 2 receives input set LEDs to Z

Joe Johnson 17-03-2015 19:24

Re: Turning LEDs on with a spike while disabled
 
Quote:

Originally Posted by Jpatterson1710 (Post 1458789)
You could use addressable LEDs, and control them with an Arduino. The RoboRIO can output information to different input pins in the Arduino, and use those combinations to set the information sent to the LEDs.
Example:
If no pins receive input, set LEDs to X (Thats Disabled)
If pin 1 receives input set LEDs to Y
If pin 2 receives input set LEDs to Z

You can use any number of output devices to control the lights as part of your custom circuits as long as you are not controlling motors, solenoids, or other actuators I think you are fine.

All you need is a way to get information out of the RoboRIO to the control device and some sort of circuit to turn the lights on/off.

There are tons of ways to get data into or out of the RoboRIO (I2C, UART, SPI, Ethernet, USB, ...) and there are an even larger array of choices for ways to turn the LEDs on/off

Dr. Joe J.

Jpatterson1710 17-03-2015 23:17

Re: Turning LEDs on with a spike while disabled
 
Yeah, with SPI output on the RoboRIO, You might be able to eliminate any other circuit or device. I believe you can get LEDs that can be controlled by just SPI.


All times are GMT -5. The time now is 16:30.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi