STARLYTE | You are my Sunshine

Space Apps Fayetteville, NC

Team Updates

Our fully functional AI prototype version of STARLYTE!  Ask it questions, watch real data display and spoken to you!  This is so cool!
Our fully functional AI prototype version of STARLYTE! Ask it questions, watch real data display and spoken to you! This is so cool!
A
ANDREW W DENIO
STARLYTE Concept Graphical User Interface used for our Video
STARLYTE Concept Graphical User Interface used for our Video
A
ANDREW W DENIO
Solar Radiation on Hawaii
Solar Radiation on Hawaii
A
ANDREW W DENIO
Solar Radiation for North and South America
Solar Radiation for North and South America
A
ANDREW W DENIO
Weather Location Comparison using LabVIEW and Python
Weather Location Comparison using LabVIEW and Python
A
ANDREW W DENIO
LabVIEW display from the Solar Simulator Demo
LabVIEW display from the Solar Simulator Demo
A
ANDREW W DENIO
Solar Simulator Layout and Components
Solar Simulator Layout and Components
A
ANDREW W DENIO
An additional view of the Solar Simulator
An additional view of the Solar Simulator
A
ANDREW W DENIO
STARLYTE's Solar Simulator, helping teach others about energy production and use
STARLYTE's Solar Simulator, helping teach others about energy production and use
A
ANDREW W DENIO
Testing our solar display setup!
Testing our solar display setup!
T
Tilani Nadeau
Ready for takeoff!
Ready for takeoff!
T
Tilani Nadeau
Future project application!
Future project application!
T
Tilani Nadeau
float Voltage = 0;
float current = 0; // value read from the pot
float calculatedCurrent = 0;
int tilt = 0;
const int analogVoltageInPin = A0; // Analog input pin that the potentiometer is attached to
const int analogCurrentInPin = A1; // Analog input pin that the potentiometer is attached to
// the setup function runs once when you press reset or power the board
void setup() {
Serial.begin(9600);
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
pinMode(analogVoltageInPin, INPUT);
pinMode(analogCurrentInPin, INPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, INPUT_PULLUP);
pinMode(11, INPUT_PULLUP);
}
// the loop function runs over and over again forever
void loop() {
int switch1 = digitalRead(8);
int switch2 = digitalRead(11);
getVoltageCurrent();
/* Serial.print(" - Switch 1: ");
Serial.print(switch1);
Serial.print(" - Switch 2: ");
Serial.println(switch2);*/
if (switch1 == LOW)
{
alwaysOn();
}
else if (switch2 == LOW)
{
sequentialOn();
}
else
{
turnOff();
}
delay(250);
//Current = analogRead(analogCurrentInPin);
// Serial.println(tilt);
}
void alwaysOn(){
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(6, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(7, HIGH); // turn the LED on (HIGH is the voltage level)
}
void sequentialOn(){
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
getVoltageCurrent();
delay(2000); // wait for a second
digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
getVoltageCurrent();
delay(2000); // wait for a second
digitalWrite(6, HIGH); // turn the LED on (HIGH is the voltage level)
getVoltageCurrent();
delay(2000); // wait for a second
digitalWrite(7, HIGH); // turn the LED on (HIGH is the voltage level)
getVoltageCurrent();
delay(2000); // wait for a second
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
digitalWrite(6, LOW); // turn the LED off by making the voltage LOW
digitalWrite(7, LOW); // turn the LED off by making the voltage LOW
getVoltageCurrent();
delay(500); // wait for a second
}
void turnOff()
{
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
digitalWrite(6, LOW); // turn the LED off by making the voltage LOW
digitalWrite(7, LOW); // turn the LED off by making the voltage LOW
}
void getVoltageCurrent()
{
current = 514.0-analogRead(analogCurrentInPin);
calculatedCurrent = current * 27.03 / 1023.0;
Voltage = analogRead(analogVoltageInPin);
// Serial.print("- Voltage: ");
Serial.print(Voltage);
Serial.print(",");
//Serial.print("- Current: ");
Serial.println(calculatedCurrent);
}
view raw SolarPanelArduino hosted with ❤ by GitHub
T
Tilani Nadeau
NASA Logo

SpaceApps is a NASA incubator innovation program.