Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
weatherbox:team_nova:irradiance_code [2016/03/17 23:24]
tyamauchi
weatherbox:team_nova:irradiance_code [2021/09/19 21:59] (current)
Line 1: Line 1:
 void setup() { void setup() {
   // put your setup code here, to run once:   // put your setup code here, to run once:
-  Serial.begin(9600);​\\+  Serial.begin(9600);​
 }\\ }\\
-\\ +void loop() { 
-void loop() {\\ +  //reads value from Irradience Value 
-  //reads value from Irradience Value\\ +  int sensorValue = analogRead(A0);​
-  int sensorValue = analogRead(A0);​\\ +
-\\ +
-  //delay serial monitor\\ +
-  delay(1000);​\\+
  
-  //Converts the read voltage from sensor to voltage\\ +  ​//delay serial monitor 
-  float voltage = sensorValue * (5.0 / 1023.0) * 1000;\\ +  delay(1000);​ 
-\\ + 
-  Serial.println(voltage* 0.25);\\ +  ​//Converts the read voltage from sensor to voltage 
-}\\+  float voltage = sensorValue * (5.0 / 1023.0) * 1000; 
 + 
 +  Serial.println(voltage* 0.25); 
 +}
  • weatherbox/team_nova/irradiance_code.1458257056.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)