Académique Documents
Professionnel Documents
Culture Documents
LAPORAN
Oleh:
Geza Sandhiyoga
161910101086
UNIVERSITAS JEMBER
2018
A. Alat dan Bahan
1. Arduino
2. Bread board
3.Kabel Jumper
4. Lampu led
5.LDR
6.Resistor
7. Potensiometer
include <PID_v1.h>
// Tuning parameters
// Record the set point as well as the controller input and output
// Create a controller that is linked to the specified Input, Ouput and Setpoint
const long serialPing = 500; // How often data is recieved from the Arduino
unsigned long lastMessage = 0; // The last time that data was recieved
void setup()
bps
myPID.SetMode(AUTOMATIC); // Turn on the PID control
void loop()
Serial.print("Setpoint = ");
Serial.print(Setpoint);