Alte Sourcen eingesammelt
This commit is contained in:
commit
0ffb9eb7f5
238
Ardo_ethernet_mqtt_keller/Ardo_ethernet_mqtt_keller.ino
Normal file
238
Ardo_ethernet_mqtt_keller/Ardo_ethernet_mqtt_keller.ino
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
#include <SPI.h>
|
||||||
|
#include <Ethernet.h>
|
||||||
|
#include <PubSubClient.h>
|
||||||
|
#include <SHT1x.h>
|
||||||
|
#include <Wire.h> // Only needed for Arduino 1.6.5 and earlier
|
||||||
|
|
||||||
|
// Update these with values suitable for your network.
|
||||||
|
// Achtung gleiche mac darf nicht im gleichen Netz auftauchen
|
||||||
|
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0xDA, 0x9F };
|
||||||
|
IPAddress ip(192, 168,2 , 202);
|
||||||
|
IPAddress server(192, 168, 2, 71);
|
||||||
|
int W5100_RESET_PIN = 3;
|
||||||
|
// PWM LM358
|
||||||
|
int pwmOut = 5;
|
||||||
|
|
||||||
|
//sht
|
||||||
|
// Timing
|
||||||
|
unsigned long readTime;
|
||||||
|
unsigned long pubTime;
|
||||||
|
// Data
|
||||||
|
float temp_c;
|
||||||
|
float old_temp_c = 0;
|
||||||
|
float humidity;
|
||||||
|
float old_humidity;
|
||||||
|
|
||||||
|
char buffer[10];
|
||||||
|
String line0;
|
||||||
|
// Relais
|
||||||
|
const int rfrei = 6;
|
||||||
|
const int left = 7;
|
||||||
|
//Status
|
||||||
|
int state = 0;
|
||||||
|
int upm = 0;
|
||||||
|
int lefton = 0;
|
||||||
|
|
||||||
|
const int idle = 0; // motor aus
|
||||||
|
const int work = 1; // motor an
|
||||||
|
|
||||||
|
// Specify data and clock connections and instantiate SHT1x object
|
||||||
|
int dataPin = 2;
|
||||||
|
int clockPin = 3;
|
||||||
|
SHT1x sht1x(dataPin, clockPin);
|
||||||
|
|
||||||
|
|
||||||
|
void callback(char* topic, byte* payload, unsigned int length) {
|
||||||
|
//Serial.print("Message arrived [");
|
||||||
|
//Serial.print(topic);
|
||||||
|
//Serial.print("] ");
|
||||||
|
line0=topic;
|
||||||
|
int x = 0;
|
||||||
|
int y = 0;
|
||||||
|
float p = 0;
|
||||||
|
//Serial.println(line0);
|
||||||
|
if (line0.endsWith("drehz")) {
|
||||||
|
for (int i=0;i<length;i++) {
|
||||||
|
if (i==0) {
|
||||||
|
x = payload[i]-'0';
|
||||||
|
}
|
||||||
|
if (i==1) {
|
||||||
|
y = payload[i]-'0';
|
||||||
|
x = x*10 + y;
|
||||||
|
}
|
||||||
|
if (i==2) {
|
||||||
|
x = 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p = x;
|
||||||
|
p = p * 2.55;
|
||||||
|
upm = p;
|
||||||
|
analogWrite(pwmOut, upm); // about zero volts
|
||||||
|
//Serial.println(x);
|
||||||
|
//Serial.println(p);
|
||||||
|
//Serial.println(upm);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (line0.endsWith("frei")){
|
||||||
|
Serial.println("frei");
|
||||||
|
|
||||||
|
int inByte1 = payload[0];
|
||||||
|
int inByte2 = payload[1];
|
||||||
|
if ((inByte1 == 'o') && (inByte2 == 'n'))
|
||||||
|
{
|
||||||
|
Serial.println(" on");
|
||||||
|
digitalWrite(rfrei, LOW);
|
||||||
|
state = work;
|
||||||
|
}
|
||||||
|
if ((inByte1 == 'o') && (inByte2 == 'f'))
|
||||||
|
{
|
||||||
|
Serial.println(" of");
|
||||||
|
digitalWrite(rfrei, HIGH);
|
||||||
|
state = idle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (line0.endsWith("left")){
|
||||||
|
Serial.println("left");
|
||||||
|
int inByte1 = payload[0];
|
||||||
|
int inByte2 = payload[1];
|
||||||
|
if ((inByte1 == 'o') && (inByte2 == 'n'))
|
||||||
|
{
|
||||||
|
lefton = 1;
|
||||||
|
Serial.println(" on");
|
||||||
|
if (state == work) {
|
||||||
|
digitalWrite(rfrei, HIGH);
|
||||||
|
delay(10000);
|
||||||
|
digitalWrite(left, LOW);
|
||||||
|
digitalWrite(rfrei, LOW);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
digitalWrite(left, LOW);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ((inByte1 == 'o') && (inByte2 == 'f'))
|
||||||
|
{
|
||||||
|
lefton = 0;
|
||||||
|
if (state == work) {
|
||||||
|
digitalWrite(rfrei, HIGH);
|
||||||
|
delay(10000);
|
||||||
|
digitalWrite(left, HIGH);
|
||||||
|
digitalWrite(rfrei, LOW);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
digitalWrite(left, HIGH);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
EthernetClient ethClient;
|
||||||
|
PubSubClient mqttClient(ethClient);
|
||||||
|
|
||||||
|
void reconnect() {
|
||||||
|
// Loop until we're reconnected
|
||||||
|
while (!mqttClient.connected()) {
|
||||||
|
Serial.print("Attempting MQTT connection...");
|
||||||
|
// Attempt to connect Achtung unterschiedliche "Kennung"
|
||||||
|
if (mqttClient.connect("arduinoKeller")) {
|
||||||
|
Serial.println("connected");
|
||||||
|
// Once connected, publish an announcement...
|
||||||
|
mqttClient.publish("outTopic","hello world");
|
||||||
|
// ... and resubscribe
|
||||||
|
mqttClient.subscribe("/keller/set/#");
|
||||||
|
} else {
|
||||||
|
Serial.print("failed, rc=");
|
||||||
|
//Serial.print(ethClient.state());
|
||||||
|
Serial.println(" try again in 5 seconds");
|
||||||
|
// Wait 5 seconds before retrying
|
||||||
|
delay(5000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void setup(){
|
||||||
|
|
||||||
|
Serial.begin(57600);
|
||||||
|
// RC-Brücke GND -- Reset behebt das Startproblem des Ethernetshields 220uF 330R
|
||||||
|
Serial.println(F("node starting..."));
|
||||||
|
pinMode(W5100_RESET_PIN, OUTPUT);
|
||||||
|
digitalWrite(W5100_RESET_PIN, LOW);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(W5100_RESET_PIN, HIGH);
|
||||||
|
// give the Ethernet shield a second to initialize:
|
||||||
|
delay(1000);
|
||||||
|
|
||||||
|
pinMode(pwmOut, OUTPUT);
|
||||||
|
pinMode(rfrei,OUTPUT);
|
||||||
|
pinMode(left,OUTPUT);
|
||||||
|
digitalWrite(left, HIGH);
|
||||||
|
lefton = 0;
|
||||||
|
digitalWrite(rfrei, HIGH);
|
||||||
|
state = idle;
|
||||||
|
upm = 0;
|
||||||
|
analogWrite(pwmOut, upm);
|
||||||
|
|
||||||
|
mqttClient.setServer(server, 1883);
|
||||||
|
mqttClient.setCallback(callback);
|
||||||
|
|
||||||
|
Ethernet.begin(mac, ip);
|
||||||
|
// Allow the hardware to sort itself out
|
||||||
|
delay(1500);
|
||||||
|
reconnect();
|
||||||
|
}
|
||||||
|
|
||||||
|
void pub_Temp(){
|
||||||
|
pubTime = millis();
|
||||||
|
dtostrf(state,1,1,buffer);
|
||||||
|
mqttClient.publish("/keller/state", buffer);
|
||||||
|
dtostrf(lefton,1,1,buffer);
|
||||||
|
mqttClient.publish("/keller/lefton", buffer);
|
||||||
|
dtostrf(upm,1,1,buffer);
|
||||||
|
mqttClient.publish("/keller/upm", buffer);
|
||||||
|
dtostrf(humidity, 6, 2, buffer);
|
||||||
|
mqttClient.publish("/keller/humidity", buffer);
|
||||||
|
dtostrf(temp_c, 6, 2, buffer);
|
||||||
|
mqttClient.publish("/keller/temp", buffer);
|
||||||
|
Serial.print("Sending... ");
|
||||||
|
Serial.print("Temp: ");
|
||||||
|
Serial.print(String(temp_c));
|
||||||
|
Serial.print(" Humidity: ");
|
||||||
|
Serial.print(String(humidity));
|
||||||
|
Serial.print(" State : ");
|
||||||
|
Serial.print(String(state));
|
||||||
|
Serial.print(" lefton : ");
|
||||||
|
Serial.print(String(lefton));
|
||||||
|
Serial.print(" upm : ");
|
||||||
|
Serial.println(String(upm));
|
||||||
|
}
|
||||||
|
|
||||||
|
void readTemp(){
|
||||||
|
readTime = millis();
|
||||||
|
temp_c = sht1x.readTemperatureC();
|
||||||
|
humidity = sht1x.readHumidity();
|
||||||
|
dtostrf(temp_c, 6, 2, buffer);
|
||||||
|
// inititialisierung
|
||||||
|
if (old_temp_c == 0) old_temp_c = temp_c;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void loop()
|
||||||
|
{
|
||||||
|
mqttClient.loop();
|
||||||
|
|
||||||
|
//analogWrite(pwmOut, 0); // about zero volts
|
||||||
|
|
||||||
|
|
||||||
|
if (!mqttClient.connected())
|
||||||
|
{
|
||||||
|
reconnect();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(millis() > readTime+500){
|
||||||
|
readTemp();
|
||||||
|
}
|
||||||
|
if(millis() > pubTime+1000){
|
||||||
|
pub_Temp();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
289
Ardo_ethernet_mqtt_teich/Ardo_ethernet_mqtt_teich.ino
Normal file
289
Ardo_ethernet_mqtt_teich/Ardo_ethernet_mqtt_teich.ino
Normal file
@ -0,0 +1,289 @@
|
|||||||
|
// - Messung des Niveaus des Wasserstandes des Teiches Pin 8
|
||||||
|
// - Schalten eines elektromagnetischen Ventils R2 12Volt
|
||||||
|
// - Schalten eine Teichpumpe R1 220Volt
|
||||||
|
// ////////- Kommunikation über Ethernet 192.168.2.44:10000 <-> 192.168.2.5:10000
|
||||||
|
#include <SPI.h>
|
||||||
|
#include <Ethernet.h>
|
||||||
|
#include <PubSubClient.h>
|
||||||
|
|
||||||
|
#include <NewPing.h>
|
||||||
|
|
||||||
|
#define TRIG_PIN 7
|
||||||
|
#define ECHO_PIN 6
|
||||||
|
#define MAX_DIST 40
|
||||||
|
|
||||||
|
#define ITERATIONS 10 // Number of iterations.
|
||||||
|
#define PING_INTERVAL 33 // Milliseconds between sensor pings (29m
|
||||||
|
unsigned long pingTimer[ITERATIONS]; // Holds the times when the next ping should happen for each iteration.
|
||||||
|
unsigned int cm[ITERATIONS]; // Where the ping distances are stored.
|
||||||
|
uint8_t currentIteration = 0; // Keeps track of iteration step.
|
||||||
|
|
||||||
|
NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DIST); // NewPing initialisieren
|
||||||
|
|
||||||
|
//#include <SHT1x.h>
|
||||||
|
#include <Wire.h> // Only needed for Arduino 1.6.5 and earlier
|
||||||
|
// I2C d -- SDA -- green -- Analog In 4
|
||||||
|
// I2C c -- SCK -- blue -- Analog In 5
|
||||||
|
extern "C" {
|
||||||
|
#include "utility/twi.h" // from Wire library, so we can do bus scanning
|
||||||
|
}
|
||||||
|
#define DEBUG 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define CARD_ADR 0x20 // address 0100000
|
||||||
|
boolean r1,r2,r3,r4,r5,r6,r7,r8;
|
||||||
|
byte oldRelais=0;
|
||||||
|
// Update these with values suitable for your network.
|
||||||
|
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0xDA, 0x9C };
|
||||||
|
IPAddress ip(192, 168,2 , 203);
|
||||||
|
IPAddress server(192, 168, 2, 71);
|
||||||
|
|
||||||
|
|
||||||
|
// Timing
|
||||||
|
unsigned long readTime;
|
||||||
|
unsigned long pubTime;
|
||||||
|
unsigned long statusTime;
|
||||||
|
|
||||||
|
char buffer[10];
|
||||||
|
String line0;
|
||||||
|
|
||||||
|
EthernetClient ethClient;
|
||||||
|
PubSubClient mqttClient(ethClient);
|
||||||
|
|
||||||
|
|
||||||
|
// Specify data and clock connections and instantiate SHT1x object
|
||||||
|
int dataPin = 2;
|
||||||
|
int clockPin = 3;
|
||||||
|
//HT1x sht1x(dataPin, clockPin);
|
||||||
|
|
||||||
|
void sendStatus(){
|
||||||
|
statusTime = millis();
|
||||||
|
int r = B00000000;
|
||||||
|
if (r1) r=r | B00000001;
|
||||||
|
if (r2) r=r | B00000010;
|
||||||
|
if (r3) r=r | B00000100;
|
||||||
|
if (r4) r=r | B00001000;
|
||||||
|
if (r5) r=r | B00010000;
|
||||||
|
if (r6) r=r | B00100000;
|
||||||
|
if (r7) r=r | B01000000;
|
||||||
|
if (r8) r=r | B10000000;
|
||||||
|
itoa(r,buffer,10);
|
||||||
|
mqttClient.publish("/teich/relais", buffer);
|
||||||
|
}
|
||||||
|
void relaisReset(){
|
||||||
|
byte r = B00000000;
|
||||||
|
Wire.beginTransmission(CARD_ADR);
|
||||||
|
Serial.print("send ");
|
||||||
|
Wire.write(r);
|
||||||
|
Wire.endTransmission();
|
||||||
|
}
|
||||||
|
|
||||||
|
void relaisProcess(){
|
||||||
|
byte r = B00000000;
|
||||||
|
if (r1) r=r | B00000001;
|
||||||
|
if (r2) r=r | B00000010;
|
||||||
|
if (r3) r=r | B00000100;
|
||||||
|
if (r4) r=r | B00001000;
|
||||||
|
if (r5) r=r | B00010000;
|
||||||
|
if (r6) r=r | B00100000;
|
||||||
|
if (r7) r=r | B01000000;
|
||||||
|
if (r8) r=r | B10000000;
|
||||||
|
if (r!=oldRelais){
|
||||||
|
Wire.beginTransmission(CARD_ADR);
|
||||||
|
Serial.print("send ");
|
||||||
|
Wire.write(r);
|
||||||
|
Wire.endTransmission();
|
||||||
|
//sendStatus();
|
||||||
|
}
|
||||||
|
oldRelais = r;
|
||||||
|
Serial.println(r,DEC);
|
||||||
|
}
|
||||||
|
|
||||||
|
void callback(char* topic, byte* payload, unsigned int length) {
|
||||||
|
Serial.print("Message arrived [");
|
||||||
|
Serial.print(topic);
|
||||||
|
Serial.print("] ");
|
||||||
|
line0 = topic;
|
||||||
|
if (line0.endsWith("wasser")) {
|
||||||
|
int payload_int = 0;
|
||||||
|
for(int i=0;i<length;i++){
|
||||||
|
char c = payload[i];
|
||||||
|
if (c >= '0' && c <= '9')
|
||||||
|
payload_int = payload_int*10 + c - '0'; //einzelne Ziffern zu einem Integer zusammenfügen
|
||||||
|
else {
|
||||||
|
Serial.print ((int)c);
|
||||||
|
Serial.println(" war so nicht erwartet");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Serial.println(payload_int);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
boolean ron = false;
|
||||||
|
int inByte1 = payload[0];
|
||||||
|
int inByte2 = payload[1];
|
||||||
|
if ((inByte1 == 'o') && (inByte2 == 'n'))
|
||||||
|
{
|
||||||
|
Serial.println(" on");
|
||||||
|
ron=true;
|
||||||
|
}
|
||||||
|
if ((inByte1 == 'o') && (inByte2 == 'f'))
|
||||||
|
{
|
||||||
|
Serial.println(" of");
|
||||||
|
ron = false;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r1"))
|
||||||
|
{
|
||||||
|
Serial.print(" r1 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r1=ron;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r2"))
|
||||||
|
{
|
||||||
|
Serial.print(" r2 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r2=ron;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r3"))
|
||||||
|
{
|
||||||
|
Serial.print(" r3 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r3=ron;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r4"))
|
||||||
|
{
|
||||||
|
Serial.print(" r4 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r4=ron;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r5"))
|
||||||
|
{
|
||||||
|
Serial.print(" r5 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r5=ron;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r6"))
|
||||||
|
{
|
||||||
|
Serial.print(" r6 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r6=ron;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r7"))
|
||||||
|
{
|
||||||
|
Serial.print(" r7 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r7=ron;
|
||||||
|
}
|
||||||
|
if (line0.endsWith("r8"))
|
||||||
|
{
|
||||||
|
Serial.print(" r8 ");
|
||||||
|
Serial.println(ron);
|
||||||
|
r8=ron;
|
||||||
|
}
|
||||||
|
relaisProcess();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void reconnect() {
|
||||||
|
// Loop until we're reconnected
|
||||||
|
while (!mqttClient.connected()) {
|
||||||
|
Serial.print("Attempting MQTT connection...");
|
||||||
|
// Attempt to connect
|
||||||
|
if (mqttClient.connect("arduinoClient")) {
|
||||||
|
Serial.println("connected");
|
||||||
|
// Once connected, publish an announcement...
|
||||||
|
mqttClient.publish("Teich","hello world");
|
||||||
|
// ... and resubscribe
|
||||||
|
mqttClient.subscribe("/teich/#");
|
||||||
|
} else {
|
||||||
|
Serial.print("failed, rc=");
|
||||||
|
//Serial.print(ethClient.state());
|
||||||
|
Serial.println(" try again in 5 seconds");
|
||||||
|
// Wait 5 seconds before retrying
|
||||||
|
delay(5000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void scan(){
|
||||||
|
Serial.println(" Scanning I2C Addresses");
|
||||||
|
uint8_t cnt=0;
|
||||||
|
for(uint8_t i=0;i<128;i++){
|
||||||
|
Wire.beginTransmission(i);
|
||||||
|
uint8_t ec=Wire.endTransmission(true);
|
||||||
|
if(ec==0){
|
||||||
|
if(i<16)Serial.print('0');
|
||||||
|
Serial.print(i,HEX);
|
||||||
|
cnt++;
|
||||||
|
}
|
||||||
|
else Serial.print("..");
|
||||||
|
Serial.print(' ');
|
||||||
|
if ((i&0x0f)==0x0f)Serial.println();
|
||||||
|
}
|
||||||
|
Serial.print("Scan Completed, ");
|
||||||
|
Serial.print(cnt);
|
||||||
|
Serial.println(" I2C Devices found.");
|
||||||
|
}
|
||||||
|
|
||||||
|
void setup()
|
||||||
|
{
|
||||||
|
Wire.begin();
|
||||||
|
Serial.begin(57600);
|
||||||
|
|
||||||
|
pingTimer[0] = millis() + 75; // First ping starts at 75ms, gives time for the Arduino to chill before starting.
|
||||||
|
for (uint8_t i = 1; i < ITERATIONS; i++) // Set the starting time for each iteration.
|
||||||
|
pingTimer[i] = pingTimer[i - 1] + PING_INTERVAL;
|
||||||
|
|
||||||
|
|
||||||
|
//scan();
|
||||||
|
relaisReset();
|
||||||
|
mqttClient.setServer(server, 1883);
|
||||||
|
mqttClient.setCallback(callback);
|
||||||
|
Ethernet.begin(mac, ip);
|
||||||
|
// Allow the hardware to sort itself out
|
||||||
|
delay(1500);
|
||||||
|
reconnect();
|
||||||
|
}
|
||||||
|
|
||||||
|
void pub_Temp(){
|
||||||
|
int sum = 0;
|
||||||
|
pubTime = millis();
|
||||||
|
int i = sonar.ping_cm();
|
||||||
|
//Serial.println(i);
|
||||||
|
if (i > 0) {
|
||||||
|
if (currentIteration < ITERATIONS){
|
||||||
|
cm[currentIteration] = i;
|
||||||
|
currentIteration += 1;
|
||||||
|
//Serial.println(currentIteration);
|
||||||
|
} else {
|
||||||
|
for (int i=0; i<ITERATIONS;i++) {
|
||||||
|
sum += cm[i];
|
||||||
|
//Serial.print(sum);
|
||||||
|
}
|
||||||
|
sum = sum / ITERATIONS;
|
||||||
|
//Serial.print(" sum ");
|
||||||
|
currentIteration = 0;
|
||||||
|
itoa(sum,buffer,10);
|
||||||
|
Serial.println(sum);
|
||||||
|
mqttClient.publish("/teich/wasser", buffer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop()
|
||||||
|
{
|
||||||
|
mqttClient.loop();
|
||||||
|
if (!mqttClient.connected())
|
||||||
|
{
|
||||||
|
reconnect();
|
||||||
|
}
|
||||||
|
if(millis() > pubTime+1000){
|
||||||
|
pub_Temp();
|
||||||
|
}
|
||||||
|
if(millis() > statusTime+5000){
|
||||||
|
sendStatus();
|
||||||
|
}
|
||||||
|
}
|
||||||
324
Arduino_Lawnmower/CUTTER_MOTOR_TEST/CUTTER_MOTOR_TEST.ino
Normal file
324
Arduino_Lawnmower/CUTTER_MOTOR_TEST/CUTTER_MOTOR_TEST.ino
Normal file
@ -0,0 +1,324 @@
|
|||||||
|
|
||||||
|
// CUTTER_MOTOR_TEST
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
int Sensemaxleft = 4; // Define variable for max sensorvalue left and set default
|
||||||
|
int Sensemaxright = 4; // Define variable for max sensorvalue right and set default
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for IF-LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
int Driveleft = 9; // Define PIN 9 for left Motor PWM output
|
||||||
|
int IN3 = 6; // Define PIN 6 for left Motor IN3
|
||||||
|
int IN4 = 5; // Define PIN 5 for left Motor IN4
|
||||||
|
|
||||||
|
int Driveright = 10; // Define PIN 10 for right Motor PWM output
|
||||||
|
int IN1 = 8; // Define PIN 8 for right Motor IN1
|
||||||
|
int IN2 = 7; // Define PIN 7 for right Motor IN2
|
||||||
|
|
||||||
|
int Drivespeedleft = 255; // Define variable for left motor speed and set PWM value
|
||||||
|
int Drivespeedright = 255; // Define variable for right motor speed and set PWM value
|
||||||
|
|
||||||
|
int Turntime; // Define variable for the time the mower has to turn
|
||||||
|
int I_Ramp; // Define counter-variable for motor ramp
|
||||||
|
|
||||||
|
// Collision control
|
||||||
|
int Drivepinleft = 1; // Define PIN A1 for left motor current
|
||||||
|
int Drivepinright = 2; // Define PIN A2 for right motor current
|
||||||
|
int Drivesenseleft; // Define variable for left motor current
|
||||||
|
int Drivesenseright; // Define variable for right motor current
|
||||||
|
|
||||||
|
int Drivemaxleft = 215; // Define variable for max motor current left and set default
|
||||||
|
int Drivemaxright = 215; // Define variable for max motor current right and set default
|
||||||
|
|
||||||
|
// Cutter motor
|
||||||
|
int Cutterspeed = 0; // Define variable for Cutterspeed PWM value (must be "0" here!
|
||||||
|
int Cutter = 11; // Define PIN 11 for cutter motor PWM output
|
||||||
|
int I_Start = 0; // Define variable for entering "Start()" function
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
pinMode(IN1, OUTPUT); // Define IN1 PIN as OUTPUT
|
||||||
|
pinMode(IN2, OUTPUT); // Define IN2 PIN as OUTPUT
|
||||||
|
pinMode(IN3, OUTPUT); // Define IN3 PIN as OUTPUT
|
||||||
|
pinMode(IN4, OUTPUT); // Define IN4 PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10;
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (I_Start < 10) { // Go to "Start()" function
|
||||||
|
Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//Collision control
|
||||||
|
Drivesenseleft = analogRead(Drivepinleft); // Read left motor current
|
||||||
|
Drivesenseright = analogRead(Drivepinright); // Read right motor current
|
||||||
|
Serial.print("Motor current left = "); // Print
|
||||||
|
Serial.println(Drivesenseleft);
|
||||||
|
Serial.print("Motor current right = ");
|
||||||
|
Serial.println(Drivesenseright);
|
||||||
|
if (Drivesenseleft > Drivemaxleft) { // Compare left motor current
|
||||||
|
backward() ;
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
if (Drivesenseright > Drivemaxright) { // Compare right motor current
|
||||||
|
backward() ;
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
Sensevalueleft = analogRead(Sensepinleft); // Read left sensor
|
||||||
|
Sensevalueright = analogRead(Sensepinright); // Read right sensor
|
||||||
|
Serial.print("Left sensor = ");
|
||||||
|
Serial.println(Sensevalueleft);
|
||||||
|
Serial.print("Right sensor = ");
|
||||||
|
Serial.println(Sensevalueright);
|
||||||
|
Serial.println(" ");
|
||||||
|
|
||||||
|
|
||||||
|
if (Sensevalueleft > Sensemaxleft) { // Compare left sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Sensevalueright > Sensemaxright) { // Compare right sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Go forward
|
||||||
|
forward();
|
||||||
|
delay(200);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Start() {
|
||||||
|
|
||||||
|
digitalWrite(Ledbat, LOW); // Switch red status-LED off
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status-LED on
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Cutterspeed = 10; // Set cutterspeed = 10 (makes only noise, no spinning)
|
||||||
|
analogWrite(Cutter, Cutterspeed);
|
||||||
|
delay(3000);
|
||||||
|
|
||||||
|
Cutterspeed = 50; // Set cutterspeed = 50 (makes spinning)
|
||||||
|
analogWrite(Cutter, Cutterspeed);
|
||||||
|
delay(3000);
|
||||||
|
|
||||||
|
I_Start = 20; // Set I_Start to a high value for not entering this function again
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
Cutterspeed =0; // Switch off cutter motor
|
||||||
|
analogWrite(Cutter, Cutterspeed);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Switch off left drive motor
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
analogWrite(Driveright, 0); // Switch off right drive motor
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void forward() { // Drive forward
|
||||||
|
|
||||||
|
digitalWrite(IN3,LOW); // Switch PIN IN3 LOW
|
||||||
|
digitalWrite(IN4,HIGH); // Switch PIN IN4 HIGH
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW); // Switch PIN IN1 Low
|
||||||
|
digitalWrite(IN2,HIGH); // Switch PIN IN2 HIGH
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // Set PWM-value for left motor
|
||||||
|
analogWrite(Driveright, Drivespeedright); // Set PWM-value for right motor
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void backward() { // Drive backward
|
||||||
|
|
||||||
|
// Switch IN-PINs for backward drive
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
delay(1000); // The time the mower should go backwards
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after going backwards
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after going backwards
|
||||||
|
delay(250); // Give the mower some time to stop
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Turnleft() { // Turn left
|
||||||
|
// Switch IN-PINs for turn left
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Turnright() { // Turn right
|
||||||
|
|
||||||
|
// Switch IN-PINs for turn right
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
292
Arduino_Lawnmower/Collision_Control/Collision_Control.ino
Normal file
292
Arduino_Lawnmower/Collision_Control/Collision_Control.ino
Normal file
@ -0,0 +1,292 @@
|
|||||||
|
|
||||||
|
// Collision_Control
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
int Sensemaxleft = 4; // Define variable for max sensorvalue left and set default
|
||||||
|
int Sensemaxright = 4; // Define variable for max sensorvalue right and set default
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for IF-LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
int Driveleft = 9; // Define PIN 9 for left Motor PWM output
|
||||||
|
int IN3 = 6; // Define PIN 6 for left Motor IN3
|
||||||
|
int IN4 = 5; // Define PIN 5 for left Motor IN4
|
||||||
|
|
||||||
|
int Driveright = 10; // Define PIN 10 for right Motor PWM output
|
||||||
|
int IN1 = 8; // Define PIN 8 for right Motor IN1
|
||||||
|
int IN2 = 7; // Define PIN 7 for right Motor IN2
|
||||||
|
|
||||||
|
int Drivespeedleft = 255; // Define variable for left motor speed and set PWM value
|
||||||
|
int Drivespeedright = 255; // Define variable for right motor speed and set PWM value
|
||||||
|
|
||||||
|
int Turntime; // Define variable for the time the mower has to turn
|
||||||
|
int I_Ramp; // Define counter-variable for motor ramp
|
||||||
|
|
||||||
|
// Collision control
|
||||||
|
int Drivepinleft = 1; // Define PIN A1 for left motor current
|
||||||
|
int Drivepinright = 2; // Define PIN A2 for right motor current
|
||||||
|
int Drivesenseleft; // Define variable for left motor current
|
||||||
|
int Drivesenseright; // Define variable for right motor current
|
||||||
|
|
||||||
|
int Drivemaxleft = 215; // Define variable for max motor current left and set default
|
||||||
|
int Drivemaxright = 215; // Define variable for max motor current right and set default
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
pinMode(IN1, OUTPUT); // Define IN1 PIN as OUTPUT
|
||||||
|
pinMode(IN2, OUTPUT); // Define IN2 PIN as OUTPUT
|
||||||
|
pinMode(IN3, OUTPUT); // Define IN3 PIN as OUTPUT
|
||||||
|
pinMode(IN4, OUTPUT); // Define IN4 PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status LED ON
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10;
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//Collision control
|
||||||
|
Drivesenseleft = analogRead(Drivepinleft); // Read left motor current
|
||||||
|
Drivesenseright = analogRead(Drivepinright); // Read right motor current
|
||||||
|
Serial.print("Motor current left = "); // Print
|
||||||
|
Serial.println(Drivesenseleft);
|
||||||
|
Serial.print("Motor current right = ");
|
||||||
|
Serial.println(Drivesenseright);
|
||||||
|
if (Drivesenseleft > Drivemaxleft) { // Compare left motor current
|
||||||
|
backward() ;
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
if (Drivesenseright > Drivemaxright) { // Compare right motor current
|
||||||
|
backward() ;
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
Sensevalueleft = analogRead(Sensepinleft); // Read left sensor
|
||||||
|
Sensevalueright = analogRead(Sensepinright); // Read right sensor
|
||||||
|
Serial.print("Left = ");
|
||||||
|
Serial.println(Sensevalueleft);
|
||||||
|
Serial.print("Right = ");
|
||||||
|
Serial.println(Sensevalueright);
|
||||||
|
Serial.println(" ");
|
||||||
|
|
||||||
|
|
||||||
|
if (Sensevalueleft > Sensemaxleft) { // Compare left sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Sensevalueright > Sensemaxright) { // Compare right sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Go forward
|
||||||
|
forward();
|
||||||
|
delay(200);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Switch off left drive motor
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
analogWrite(Driveright, 0); // Switch off right drive motor
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void forward() { // Drive forward
|
||||||
|
|
||||||
|
digitalWrite(IN3,LOW); // Switch PIN IN3 LOW
|
||||||
|
digitalWrite(IN4,HIGH); // Switch PIN IN4 HIGH
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW); // Switch PIN IN1 Low
|
||||||
|
digitalWrite(IN2,HIGH); // Switch PIN IN2 HIGH
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // Set PWM-value for left motor
|
||||||
|
analogWrite(Driveright, Drivespeedright); // Set PWM-value for right motor
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void backward() { // Drive backward
|
||||||
|
|
||||||
|
// Switch IN-PINs for backward drive
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
delay(1000); // The time the mower should go backwards
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after going backwards
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after going backwards
|
||||||
|
delay(250); // Give the mower some time to stop
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Turnleft() { // Turn left
|
||||||
|
// Switch IN-PINs for turn left
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Turnright() { // Turn right
|
||||||
|
|
||||||
|
// Switch IN-PINs for turn right
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
122
Arduino_Lawnmower/DRIVE_MOTOR_TEST/DRIVE_MOTOR_TEST.ino
Normal file
122
Arduino_Lawnmower/DRIVE_MOTOR_TEST/DRIVE_MOTOR_TEST.ino
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
|
||||||
|
// DRIVE_MOTOR_TEST
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for IF-LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
int Driveleft = 9; // Define PIN 9 for left Motor PWM output
|
||||||
|
int IN3 = 6; // Define PIN 6 for left Motor IN3
|
||||||
|
int IN4 = 5; // Define PIN 5 for left Motor IN4
|
||||||
|
|
||||||
|
int Driveright = 10; // Define PIN 10 for right Motor PWM output
|
||||||
|
int IN1 = 8; // Define PIN 8 for right Motor IN1
|
||||||
|
int IN2 = 7; // Define PIN 7 for right Motor IN2
|
||||||
|
|
||||||
|
int Drivespeedleft = 255; // Define variable for left motor speed and set PWM value
|
||||||
|
int Drivespeedright = 255; // Define variable for right motor speed and set PWM value
|
||||||
|
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
pinMode(IN1, OUTPUT); // Define IN1 PIN as OUTPUT
|
||||||
|
pinMode(IN2, OUTPUT); // Define IN2 PIN as OUTPUT
|
||||||
|
pinMode(IN3, OUTPUT); // Define IN3 PIN as OUTPUT
|
||||||
|
pinMode(IN4, OUTPUT); // Define IN4 PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status LED ON
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
Serial.println(I); // Print IF-LOOP counter
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10;
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
Serial.print(" Voltvalue = "); // Print text without linefeed
|
||||||
|
Serial.println(Voltvalue); // Print avarage voltvalue with linefeed
|
||||||
|
Serial.println(" "); // Print nothing as a linefeed
|
||||||
|
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
forward(); // Go to "forward()" function
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Switch off left drive motor
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
analogWrite(Driveright, 0); // Switch off right drive motor
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void forward() { // Drive forward
|
||||||
|
|
||||||
|
digitalWrite(IN3,LOW); // Switch PIN IN3 LOW
|
||||||
|
digitalWrite(IN4,HIGH); // Switch PIN IN4 HIGH
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW); // Switch PIN IN1 Low
|
||||||
|
digitalWrite(IN2,HIGH); // Switch PIN IN2 HIGH
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // Set PWM-value for left motor
|
||||||
|
analogWrite(Driveright, Drivespeedright); // Set PWM-value for right motor
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
241
Arduino_Lawnmower/DRIVE_TEST_COMPLETE/DRIVE_TEST_COMPLETE.ino
Normal file
241
Arduino_Lawnmower/DRIVE_TEST_COMPLETE/DRIVE_TEST_COMPLETE.ino
Normal file
@ -0,0 +1,241 @@
|
|||||||
|
|
||||||
|
// DRIVE_TEST_COMPLETE
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for IF-LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
int Driveleft = 9; // Define PIN 9 for left Motor PWM output
|
||||||
|
int IN3 = 6; // Define PIN 6 for left Motor IN3
|
||||||
|
int IN4 = 5; // Define PIN 5 for left Motor IN4
|
||||||
|
|
||||||
|
int Driveright = 10; // Define PIN 10 for right Motor PWM output
|
||||||
|
int IN1 = 8; // Define PIN 8 for right Motor IN1
|
||||||
|
int IN2 = 7; // Define PIN 7 for right Motor IN2
|
||||||
|
|
||||||
|
int Drivespeedleft = 255; // Define variable for left motor speed and set PWM value
|
||||||
|
int Drivespeedright = 255; // Define variable for right motor speed and set PWM value
|
||||||
|
|
||||||
|
int Turntime; // Define variable for the time the mower has to turn
|
||||||
|
int I_Ramp; // Define counter-variable for motor ramp
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
pinMode(IN1, OUTPUT); // Define IN1 PIN as OUTPUT
|
||||||
|
pinMode(IN2, OUTPUT); // Define IN2 PIN as OUTPUT
|
||||||
|
pinMode(IN3, OUTPUT); // Define IN3 PIN as OUTPUT
|
||||||
|
pinMode(IN4, OUTPUT); // Define IN4 PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status LED ON
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10;
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
forward(); // Go to "forward()" function
|
||||||
|
delay(2000); // Go forward for 2000ms
|
||||||
|
backward(); // Go to "backward()" function
|
||||||
|
Turnleft(); // Go to "Turnleft()" function
|
||||||
|
forward(); // Go to "forward()" function
|
||||||
|
delay(2000); // Go forward for 2000ms
|
||||||
|
Turnright(); // Go to "Turnright()" function
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Switch off left drive motor
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
analogWrite(Driveright, 0); // Switch off right drive motor
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void forward() { // Drive forward
|
||||||
|
|
||||||
|
digitalWrite(IN3,LOW); // Switch PIN IN3 LOW
|
||||||
|
digitalWrite(IN4,HIGH); // Switch PIN IN4 HIGH
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW); // Switch PIN IN1 Low
|
||||||
|
digitalWrite(IN2,HIGH); // Switch PIN IN2 HIGH
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // Set PWM-value for left motor
|
||||||
|
analogWrite(Driveright, Drivespeedright); // Set PWM-value for right motor
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void backward() { // Drive backward
|
||||||
|
|
||||||
|
// Switch IN-PINs for backward drive
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
delay(1000); // The time the mower should go backwards
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after going backwards
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after going backwards
|
||||||
|
delay(250); // Give the mower some time to stop
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Turnleft() { // Turn left
|
||||||
|
// Switch IN-PINs for turn left
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Turnright() { // Turn right
|
||||||
|
|
||||||
|
// Switch IN-PINs for turn right
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
266
Arduino_Lawnmower/DRIVE_WITH_SENSORS/DRIVE_WITH_SENSORS.ino
Normal file
266
Arduino_Lawnmower/DRIVE_WITH_SENSORS/DRIVE_WITH_SENSORS.ino
Normal file
@ -0,0 +1,266 @@
|
|||||||
|
|
||||||
|
// DRIVE_WITH_SENSORS
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
int Sensemaxleft = 4; // Define variable for max sensorvalue left and set default
|
||||||
|
int Sensemaxright = 4; // Define variable for max sensorvalue right and set default
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for IF-LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
int Driveleft = 9; // Define PIN 9 for left Motor PWM output
|
||||||
|
int IN3 = 6; // Define PIN 6 for left Motor IN3
|
||||||
|
int IN4 = 5; // Define PIN 5 for left Motor IN4
|
||||||
|
|
||||||
|
int Driveright = 10; // Define PIN 10 for right Motor PWM output
|
||||||
|
int IN1 = 8; // Define PIN 8 for right Motor IN1
|
||||||
|
int IN2 = 7; // Define PIN 7 for right Motor IN2
|
||||||
|
|
||||||
|
int Drivespeedleft = 255; // Define variable for left motor speed and set PWM value
|
||||||
|
int Drivespeedright = 255; // Define variable for right motor speed and set PWM value
|
||||||
|
|
||||||
|
int Turntime; // Define variable for the time the mower has to turn
|
||||||
|
int I_Ramp; // Define counter-variable for motor ramp
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
pinMode(IN1, OUTPUT); // Define IN1 PIN as OUTPUT
|
||||||
|
pinMode(IN2, OUTPUT); // Define IN2 PIN as OUTPUT
|
||||||
|
pinMode(IN3, OUTPUT); // Define IN3 PIN as OUTPUT
|
||||||
|
pinMode(IN4, OUTPUT); // Define IN4 PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status LED ON
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10;
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
Sensevalueleft = analogRead(Sensepinleft); // Read left sensor
|
||||||
|
Sensevalueright = analogRead(Sensepinright); // Read right sensor
|
||||||
|
Serial.print("Left = ");
|
||||||
|
Serial.println(Sensevalueleft);
|
||||||
|
Serial.print("Right = ");
|
||||||
|
Serial.println(Sensevalueright);
|
||||||
|
Serial.println(" ");
|
||||||
|
|
||||||
|
|
||||||
|
if (Sensevalueleft > Sensemaxleft) { // Compare left sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Sensevalueright > Sensemaxright) { // Compare right sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Go forward
|
||||||
|
forward();
|
||||||
|
delay(200);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Switch off left drive motor
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
analogWrite(Driveright, 0); // Switch off right drive motor
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void forward() { // Drive forward
|
||||||
|
|
||||||
|
digitalWrite(IN3,LOW); // Switch PIN IN3 LOW
|
||||||
|
digitalWrite(IN4,HIGH); // Switch PIN IN4 HIGH
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW); // Switch PIN IN1 Low
|
||||||
|
digitalWrite(IN2,HIGH); // Switch PIN IN2 HIGH
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // Set PWM-value for left motor
|
||||||
|
analogWrite(Driveright, Drivespeedright); // Set PWM-value for right motor
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void backward() { // Drive backward
|
||||||
|
|
||||||
|
// Switch IN-PINs for backward drive
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
delay(1000); // The time the mower should go backwards
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after going backwards
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after going backwards
|
||||||
|
delay(250); // Give the mower some time to stop
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Turnleft() { // Turn left
|
||||||
|
// Switch IN-PINs for turn left
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Turnright() { // Turn right
|
||||||
|
|
||||||
|
// Switch IN-PINs for turn right
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,337 @@
|
|||||||
|
|
||||||
|
// FINAL_ARDUMOWER_SKETCH
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
int Sensemaxleft = 4; // Define variable for max sensorvalue left and set default
|
||||||
|
int Sensemaxright = 4; // Define variable for max sensorvalue right and set default
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for IF-LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
int Driveleft = 9; // Define PIN 9 for left Motor PWM output
|
||||||
|
int IN3 = 6; // Define PIN 6 for left Motor IN3
|
||||||
|
int IN4 = 5; // Define PIN 5 for left Motor IN4
|
||||||
|
|
||||||
|
int Driveright = 10; // Define PIN 10 for right Motor PWM output
|
||||||
|
int IN1 = 8; // Define PIN 8 for right Motor IN1
|
||||||
|
int IN2 = 7; // Define PIN 7 for right Motor IN2
|
||||||
|
|
||||||
|
int Drivespeedleft = 255; // Define variable for left motor speed and set PWM value
|
||||||
|
int Drivespeedright = 255; // Define variable for right motor speed and set PWM value
|
||||||
|
|
||||||
|
int Turntime; // Define variable for the time the mower has to turn
|
||||||
|
int I_Ramp; // Define counter-variable for motor ramp
|
||||||
|
|
||||||
|
// Collision control
|
||||||
|
int Drivepinleft = 1; // Define PIN A1 for left motor current
|
||||||
|
int Drivepinright = 2; // Define PIN A2 for right motor current
|
||||||
|
int Drivesenseleft; // Define variable for left motor current
|
||||||
|
int Drivesenseright; // Define variable for right motor current
|
||||||
|
|
||||||
|
int Drivemaxleft = 215; // Define variable for max motor current left and set default
|
||||||
|
int Drivemaxright = 215; // Define variable for max motor current right and set default
|
||||||
|
|
||||||
|
// Cutter motor
|
||||||
|
int Cutterspeed = 0; // Define variable for Cutterspeed PWM value (must be "0" here!
|
||||||
|
int Cutter = 11; // Define PIN 11 for cutter motor PWM output
|
||||||
|
int I_Start = 0; // Define variable for entering "Start()" function
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
pinMode(IN1, OUTPUT); // Define IN1 PIN as OUTPUT
|
||||||
|
pinMode(IN2, OUTPUT); // Define IN2 PIN as OUTPUT
|
||||||
|
pinMode(IN3, OUTPUT); // Define IN3 PIN as OUTPUT
|
||||||
|
pinMode(IN4, OUTPUT); // Define IN4 PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10;
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (I_Start < 10) { // Go to "Start()" function
|
||||||
|
Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//Collision control
|
||||||
|
Drivesenseleft = analogRead(Drivepinleft); // Read left motor current
|
||||||
|
Drivesenseright = analogRead(Drivepinright); // Read right motor current
|
||||||
|
Serial.print("Motor current left = "); // Print
|
||||||
|
Serial.println(Drivesenseleft);
|
||||||
|
Serial.print("Motor current right = ");
|
||||||
|
Serial.println(Drivesenseright);
|
||||||
|
if (Drivesenseleft > Drivemaxleft) { // Compare left motor current
|
||||||
|
backward() ;
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
if (Drivesenseright > Drivemaxright) { // Compare right motor current
|
||||||
|
backward() ;
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
Sensevalueleft = analogRead(Sensepinleft); // Read left sensor
|
||||||
|
Sensevalueright = analogRead(Sensepinright); // Read right sensor
|
||||||
|
Serial.print("Left sensor = ");
|
||||||
|
Serial.println(Sensevalueleft);
|
||||||
|
Serial.print("Right sensor = ");
|
||||||
|
Serial.println(Sensevalueright);
|
||||||
|
Serial.println(" ");
|
||||||
|
|
||||||
|
|
||||||
|
if (Sensevalueleft > Sensemaxleft) { // Compare left sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Sensevalueright > Sensemaxright) { // Compare right sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Go forward
|
||||||
|
forward();
|
||||||
|
delay(200);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Start() {
|
||||||
|
|
||||||
|
digitalWrite(Ledbat, LOW); // Switch red status-LED off
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status-LED on
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
//Default Settings
|
||||||
|
|
||||||
|
Sensemaxleft = 4; // Set max sensorvalue left (should be >2)
|
||||||
|
Sensemaxright = 4; // Set max sensorvalue right (should be >2)
|
||||||
|
|
||||||
|
Drivemaxleft = 215; // Set max motor current left
|
||||||
|
Drivemaxright = 215; // Set max motor current right
|
||||||
|
|
||||||
|
Drivespeedleft = 255; // Set left motor speed (valid range 0....255)
|
||||||
|
Drivespeedright = 255; // Set right motor speed (valid range 0....255)
|
||||||
|
|
||||||
|
Voltlow = 10; // Set minimum operation voltage
|
||||||
|
|
||||||
|
Cutterspeed = 50; // Set Cutter motor speed (50 should be maximum!)
|
||||||
|
|
||||||
|
|
||||||
|
// Start cutter motor
|
||||||
|
|
||||||
|
analogWrite(Cutter, Cutterspeed);
|
||||||
|
delay(3000);
|
||||||
|
|
||||||
|
I_Start = 20; // Set I_Start to a high value for not entering this function again
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
Cutterspeed =0; // Switch off cutter motor
|
||||||
|
analogWrite(Cutter, Cutterspeed);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Switch off left drive motor
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
analogWrite(Driveright, 0); // Switch off right drive motor
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void forward() { // Drive forward
|
||||||
|
|
||||||
|
digitalWrite(IN3,LOW); // Switch PIN IN3 LOW
|
||||||
|
digitalWrite(IN4,HIGH); // Switch PIN IN4 HIGH
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW); // Switch PIN IN1 Low
|
||||||
|
digitalWrite(IN2,HIGH); // Switch PIN IN2 HIGH
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // Set PWM-value for left motor
|
||||||
|
analogWrite(Driveright, Drivespeedright); // Set PWM-value for right motor
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void backward() { // Drive backward
|
||||||
|
|
||||||
|
// Switch IN-PINs for backward drive
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
delay(1000); // The time the mower should go backwards
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after going backwards
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after going backwards
|
||||||
|
delay(250); // Give the mower some time to stop
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Turnleft() { // Turn left
|
||||||
|
// Switch IN-PINs for turn left
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Turnright() { // Turn right
|
||||||
|
|
||||||
|
// Switch IN-PINs for turn right
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,337 @@
|
|||||||
|
|
||||||
|
// FINAL_ARDUMOWER_SKETCH
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
int Sensemaxleft = 4; // Define variable for max sensorvalue left and set default
|
||||||
|
int Sensemaxright = 4; // Define variable for max sensorvalue right and set default
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for IF-LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
int Driveleft = 9; // Define PIN 9 for left Motor PWM output
|
||||||
|
int IN3 = 6; // Define PIN 6 for left Motor IN3
|
||||||
|
int IN4 = 5; // Define PIN 5 for left Motor IN4
|
||||||
|
|
||||||
|
int Driveright = 10; // Define PIN 10 for right Motor PWM output
|
||||||
|
int IN1 = 8; // Define PIN 8 for right Motor IN1
|
||||||
|
int IN2 = 7; // Define PIN 7 for right Motor IN2
|
||||||
|
|
||||||
|
int Drivespeedleft = 255; // Define variable for left motor speed and set PWM value
|
||||||
|
int Drivespeedright = 255; // Define variable for right motor speed and set PWM value
|
||||||
|
|
||||||
|
int Turntime; // Define variable for the time the mower has to turn
|
||||||
|
int I_Ramp; // Define counter-variable for motor ramp
|
||||||
|
|
||||||
|
// Collision control
|
||||||
|
int Drivepinleft = 1; // Define PIN A1 for left motor current
|
||||||
|
int Drivepinright = 2; // Define PIN A2 for right motor current
|
||||||
|
int Drivesenseleft; // Define variable for left motor current
|
||||||
|
int Drivesenseright; // Define variable for right motor current
|
||||||
|
|
||||||
|
int Drivemaxleft = 215; // Define variable for max motor current left and set default
|
||||||
|
int Drivemaxright = 215; // Define variable for max motor current right and set default
|
||||||
|
|
||||||
|
// Cutter motor
|
||||||
|
int Cutterspeed = 0; // Define variable for Cutterspeed PWM value (must be "0" here!
|
||||||
|
int Cutter = 11; // Define PIN 11 for cutter motor PWM output
|
||||||
|
int I_Start = 0; // Define variable for entering "Start()" function
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
// Drive motors
|
||||||
|
pinMode(IN1, OUTPUT); // Define IN1 PIN as OUTPUT
|
||||||
|
pinMode(IN2, OUTPUT); // Define IN2 PIN as OUTPUT
|
||||||
|
pinMode(IN3, OUTPUT); // Define IN3 PIN as OUTPUT
|
||||||
|
pinMode(IN4, OUTPUT); // Define IN4 PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10;
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (I_Start < 10) { // Go to "Start()" function
|
||||||
|
Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//Collision control
|
||||||
|
Drivesenseleft = analogRead(Drivepinleft); // Read left motor current
|
||||||
|
Drivesenseright = analogRead(Drivepinright); // Read right motor current
|
||||||
|
Serial.print("Motor current left = "); // Print
|
||||||
|
Serial.println(Drivesenseleft);
|
||||||
|
Serial.print("Motor current right = ");
|
||||||
|
Serial.println(Drivesenseright);
|
||||||
|
if (Drivesenseleft > Drivemaxleft) { // Compare left motor current
|
||||||
|
backward() ;
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
if (Drivesenseright > Drivemaxright) { // Compare right motor current
|
||||||
|
backward() ;
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
Sensevalueleft = analogRead(Sensepinleft); // Read left sensor
|
||||||
|
Sensevalueright = analogRead(Sensepinright); // Read right sensor
|
||||||
|
Serial.print("Left sensor = ");
|
||||||
|
Serial.println(Sensevalueleft);
|
||||||
|
Serial.print("Right sensor = ");
|
||||||
|
Serial.println(Sensevalueright);
|
||||||
|
Serial.println(" ");
|
||||||
|
|
||||||
|
|
||||||
|
if (Sensevalueleft > Sensemaxleft) { // Compare left sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnright();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Sensevalueright > Sensemaxright) { // Compare right sensor
|
||||||
|
analogWrite(Driveleft, 0);
|
||||||
|
analogWrite(Driveright, 0);
|
||||||
|
delay(250);
|
||||||
|
backward();
|
||||||
|
Turnleft();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Go forward
|
||||||
|
forward();
|
||||||
|
delay(200);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Start() {
|
||||||
|
|
||||||
|
digitalWrite(Ledbat, LOW); // Switch red status-LED off
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status-LED on
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
//Default Settings
|
||||||
|
|
||||||
|
Sensemaxleft = 4; // Set max sensorvalue left (should be >2)
|
||||||
|
Sensemaxright = 4; // Set max sensorvalue right (should be >2)
|
||||||
|
|
||||||
|
Drivemaxleft = 170; // Set max motor current left
|
||||||
|
Drivemaxright = 170; // Set max motor current right
|
||||||
|
|
||||||
|
Drivespeedleft = 255; // Set left motor speed (valid range 0....255)
|
||||||
|
Drivespeedright = 255; // Set right motor speed (valid range 0....255)
|
||||||
|
|
||||||
|
Voltlow = 10; // Set minimum operation voltage
|
||||||
|
|
||||||
|
Cutterspeed = 50; // Set Cutter motor speed (50 should be maximum!)
|
||||||
|
|
||||||
|
|
||||||
|
// Start cutter motor
|
||||||
|
|
||||||
|
analogWrite(Cutter, Cutterspeed);
|
||||||
|
delay(3000);
|
||||||
|
|
||||||
|
I_Start = 20; // Set I_Start to a high value for not entering this function again
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
Cutterspeed =0; // Switch off cutter motor
|
||||||
|
analogWrite(Cutter, Cutterspeed);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Switch off left drive motor
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
analogWrite(Driveright, 0); // Switch off right drive motor
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void forward() { // Drive forward
|
||||||
|
|
||||||
|
digitalWrite(IN3,LOW); // Switch PIN IN3 LOW
|
||||||
|
digitalWrite(IN4,HIGH); // Switch PIN IN4 HIGH
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW); // Switch PIN IN1 Low
|
||||||
|
digitalWrite(IN2,HIGH); // Switch PIN IN2 HIGH
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // Set PWM-value for left motor
|
||||||
|
analogWrite(Driveright, Drivespeedright); // Set PWM-value for right motor
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void backward() { // Drive backward
|
||||||
|
|
||||||
|
// Switch IN-PINs for backward drive
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
delay(1000); // The time the mower should go backwards
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after going backwards
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after going backwards
|
||||||
|
delay(250); // Give the mower some time to stop
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Turnleft() { // Turn left
|
||||||
|
// Switch IN-PINs for turn left
|
||||||
|
digitalWrite(IN3,HIGH);
|
||||||
|
digitalWrite(IN4,LOW);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Turnright() { // Turn right
|
||||||
|
|
||||||
|
// Switch IN-PINs for turn right
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,HIGH);
|
||||||
|
digitalWrite(IN2,LOW);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
Turntime = random(100, 1500); // Random for turning time
|
||||||
|
delay(Turntime);
|
||||||
|
|
||||||
|
analogWrite(Driveleft, 0); // Stop motor after turning
|
||||||
|
analogWrite(Driveright, 0); // Stop motor after turning
|
||||||
|
|
||||||
|
Sensevalueleft = 0; // Set left sensor-value back to zero
|
||||||
|
Sensevalueright = 0; // Set right sensor-value back to zero
|
||||||
|
delay(250);
|
||||||
|
|
||||||
|
// Switch IN-PINs for driving forward
|
||||||
|
digitalWrite(IN3,LOW);
|
||||||
|
digitalWrite(IN4,HIGH);
|
||||||
|
|
||||||
|
digitalWrite(IN1,LOW);
|
||||||
|
digitalWrite(IN2,HIGH);
|
||||||
|
|
||||||
|
for (I_Ramp = 0; I_Ramp < 255; I_Ramp ++) { // Counter-loop for motor ramp
|
||||||
|
analogWrite(Driveleft, I_Ramp);
|
||||||
|
analogWrite(Driveright, I_Ramp);
|
||||||
|
delay(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
analogWrite(Driveleft, Drivespeedleft); // After motor ramp use default drivespeed-value
|
||||||
|
analogWrite(Driveright, Drivespeedright); // After motor ramp use default drivespeed-value
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
45
Arduino_Lawnmower/READ_VOLT_TEST/READ_VOLT_TEST.ino
Normal file
45
Arduino_Lawnmower/READ_VOLT_TEST/READ_VOLT_TEST.ino
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
|
||||||
|
// READ_VOLT_TEST
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
|
||||||
|
Volt = analogRead(Voltpin); // Read voltage from PIN A0
|
||||||
|
Volt = Volt * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
Serial.print(" Battery voltage = "); // Print text without linefeed
|
||||||
|
Serial.println(Volt); // Print Volt-Value with linefeed
|
||||||
|
Serial.println(" "); // Print nothing as a linefeed
|
||||||
|
|
||||||
|
delay(500); // Wait 500ms
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
33
Arduino_Lawnmower/SENSORTEST/SENSORTEST.ino
Normal file
33
Arduino_Lawnmower/SENSORTEST/SENSORTEST.ino
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
|
||||||
|
// SENSORTEST
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); //Start the serial communication
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
Sensevalueleft = analogRead(Sensepinleft); // Read left sensor
|
||||||
|
Sensevalueright = analogRead(Sensepinright); // Read right sensor
|
||||||
|
Serial.print("Left = "); // Print
|
||||||
|
Serial.println(Sensevalueleft); // Print sensorvalue left
|
||||||
|
Serial.print("Right = "); // Print
|
||||||
|
Serial.println(Sensevalueright); // Print sensorvalue right
|
||||||
|
Serial.println(" "); // Print
|
||||||
|
|
||||||
|
delay(500); // Wait 500ms
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
39
Arduino_Lawnmower/STATUS_LED_TEST/STATUS_LED_TEST.ino
Normal file
39
Arduino_Lawnmower/STATUS_LED_TEST/STATUS_LED_TEST.ino
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
// STATUS LED TEST
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
digitalWrite(Ledbat, LOW); // Swich red LED off
|
||||||
|
digitalWrite(Ledstart, HIGH); // Swich green LED on
|
||||||
|
delay(500);
|
||||||
|
digitalWrite(Ledbat, HIGH); // Swich red LED on
|
||||||
|
digitalWrite(Ledstart, LOW); // Swich green LED off
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
85
Arduino_Lawnmower/STOP_FUNCTION_TEST/STOP_FUNCTION_TEST.ino
Normal file
85
Arduino_Lawnmower/STOP_FUNCTION_TEST/STOP_FUNCTION_TEST.ino
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
|
||||||
|
// STOP_FUNCTION_TEST
|
||||||
|
|
||||||
|
// Read sensors
|
||||||
|
|
||||||
|
int Sensepinleft = 4 ; // Define PIN A4 for left Sensor
|
||||||
|
int Sensepinright = 3 ; // Define PIN A3 for right Sensor
|
||||||
|
int Sensevalueleft; // Define variable for sensorvalue left
|
||||||
|
int Sensevalueright; // Define variable for sensorvalue right
|
||||||
|
|
||||||
|
// Status LED
|
||||||
|
int Ledbat = 3; // Define PIN 3 for digital output red LED
|
||||||
|
int Ledstart = 4; // Define PIN 4 for digital output green LED
|
||||||
|
|
||||||
|
// Read Battery voltage
|
||||||
|
int Voltpin = 0; // Define PIN A0 for reading battery voltage
|
||||||
|
float Volt; // Define variable for voltage
|
||||||
|
float Voltvalue; // Define variable for avarage voltage calculation
|
||||||
|
float Voltlow = 10; // Define variable and setup for minimum operation voltage
|
||||||
|
int I; // Define variable for LOOP counter
|
||||||
|
int I_bat = 20; // Define variable for battery status (low or high)
|
||||||
|
|
||||||
|
void setup() { // Setup
|
||||||
|
|
||||||
|
// Print
|
||||||
|
Serial.begin(9600); // Start the serial communication
|
||||||
|
|
||||||
|
// Status LEDs
|
||||||
|
pinMode(Ledbat, OUTPUT); // Define Ledbat PIN as OUTPUT
|
||||||
|
pinMode(Ledstart, OUTPUT); // Define Ledstart PIN as OUTPUT
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void loop() { // Start main programm
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, HIGH); // Switch green status LED ON
|
||||||
|
|
||||||
|
// Read Voltpin for 10 times and calculate average voltvalue
|
||||||
|
Voltvalue = 0;
|
||||||
|
for (I = 0;I<10; I++){
|
||||||
|
Volt = analogRead(Voltpin);
|
||||||
|
Voltvalue = Voltvalue + Volt;
|
||||||
|
delay(10);
|
||||||
|
Serial.println(I); // Print LOOP counter
|
||||||
|
}
|
||||||
|
Voltvalue = Voltvalue / 10; // calculate average value
|
||||||
|
Voltvalue = Voltvalue * 0.02765; // 0.02765 is factor for voltagedevider 22K / 4,7K
|
||||||
|
|
||||||
|
Serial.print("Battery voltage = "); // Print text without linefeed
|
||||||
|
Serial.println(Voltvalue); // Print avarage voltvalue with linefeed
|
||||||
|
Serial.println(" "); // Print nothing as a linefeed
|
||||||
|
|
||||||
|
|
||||||
|
if (Voltvalue < Voltlow) { // Make dicission: Batteryvoltage O.K or low
|
||||||
|
I_bat = 1; // If battery voltage is low set status 1
|
||||||
|
Stop(); // If battery is low go to “Stop()” function
|
||||||
|
}
|
||||||
|
|
||||||
|
delay(500); // Wait 500ms
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/////////FUNCTIONS///////////
|
||||||
|
|
||||||
|
void Stop() { // Stop the ARDUMOWER if battery is low
|
||||||
|
|
||||||
|
digitalWrite(Ledstart, LOW); // Switch green status LED OFF
|
||||||
|
|
||||||
|
while (I_bat < 10) // As long as batterystatus is low, stay here
|
||||||
|
{
|
||||||
|
// flash red status LED
|
||||||
|
digitalWrite(Ledbat, HIGH);
|
||||||
|
delay(100);
|
||||||
|
digitalWrite(Ledbat, LOW);
|
||||||
|
delay(500);
|
||||||
|
|
||||||
|
Serial.println("Low Battery"); // Print "Low battery" message
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
149
CameraWebServer/CameraWebServer.ino
Normal file
149
CameraWebServer/CameraWebServer.ino
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
#include "esp_camera.h"
|
||||||
|
#include <WiFi.h>
|
||||||
|
|
||||||
|
//
|
||||||
|
// WARNING!!! Make sure that you have either selected ESP32 Wrover Module,
|
||||||
|
// or another board which has PSRAM enabled
|
||||||
|
// jfs board ESP32 Wrover Module
|
||||||
|
// jfs partition Schemme -> Huge APP
|
||||||
|
//
|
||||||
|
// Select camera model
|
||||||
|
//#define CAMERA_MODEL_WROVER_KIT
|
||||||
|
//#define CAMERA_MODEL_M5STACK_PSRAM
|
||||||
|
#define CAMERA_MODEL_AI_THINKER
|
||||||
|
|
||||||
|
const char* ssid = "GAST";
|
||||||
|
const char* password = "passatvr6";
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(CAMERA_MODEL_WROVER_KIT)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM -1
|
||||||
|
#define XCLK_GPIO_NUM 21
|
||||||
|
#define SIOD_GPIO_NUM 26
|
||||||
|
#define SIOC_GPIO_NUM 27
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 35
|
||||||
|
#define Y8_GPIO_NUM 34
|
||||||
|
#define Y7_GPIO_NUM 39
|
||||||
|
#define Y6_GPIO_NUM 36
|
||||||
|
#define Y5_GPIO_NUM 19
|
||||||
|
#define Y4_GPIO_NUM 18
|
||||||
|
#define Y3_GPIO_NUM 5
|
||||||
|
#define Y2_GPIO_NUM 4
|
||||||
|
#define VSYNC_GPIO_NUM 25
|
||||||
|
#define HREF_GPIO_NUM 23
|
||||||
|
#define PCLK_GPIO_NUM 22
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_M5STACK_PSRAM)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM 15
|
||||||
|
#define XCLK_GPIO_NUM 27
|
||||||
|
#define SIOD_GPIO_NUM 25
|
||||||
|
#define SIOC_GPIO_NUM 23
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 19
|
||||||
|
#define Y8_GPIO_NUM 36
|
||||||
|
#define Y7_GPIO_NUM 18
|
||||||
|
#define Y6_GPIO_NUM 39
|
||||||
|
#define Y5_GPIO_NUM 5
|
||||||
|
#define Y4_GPIO_NUM 34
|
||||||
|
#define Y3_GPIO_NUM 35
|
||||||
|
#define Y2_GPIO_NUM 32
|
||||||
|
#define VSYNC_GPIO_NUM 22
|
||||||
|
#define HREF_GPIO_NUM 26
|
||||||
|
#define PCLK_GPIO_NUM 21
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_AI_THINKER)
|
||||||
|
#define PWDN_GPIO_NUM 32
|
||||||
|
#define RESET_GPIO_NUM -1
|
||||||
|
#define XCLK_GPIO_NUM 0
|
||||||
|
#define SIOD_GPIO_NUM 26
|
||||||
|
#define SIOC_GPIO_NUM 27
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 35
|
||||||
|
#define Y8_GPIO_NUM 34
|
||||||
|
#define Y7_GPIO_NUM 39
|
||||||
|
#define Y6_GPIO_NUM 36
|
||||||
|
#define Y5_GPIO_NUM 21
|
||||||
|
#define Y4_GPIO_NUM 19
|
||||||
|
#define Y3_GPIO_NUM 18
|
||||||
|
#define Y2_GPIO_NUM 5
|
||||||
|
#define VSYNC_GPIO_NUM 25
|
||||||
|
#define HREF_GPIO_NUM 23
|
||||||
|
#define PCLK_GPIO_NUM 22
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error "Camera model not selected"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void startCameraServer();
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
Serial.begin(115200);
|
||||||
|
Serial.setDebugOutput(true);
|
||||||
|
Serial.println();
|
||||||
|
|
||||||
|
camera_config_t config;
|
||||||
|
config.ledc_channel = LEDC_CHANNEL_0;
|
||||||
|
config.ledc_timer = LEDC_TIMER_0;
|
||||||
|
config.pin_d0 = Y2_GPIO_NUM;
|
||||||
|
config.pin_d1 = Y3_GPIO_NUM;
|
||||||
|
config.pin_d2 = Y4_GPIO_NUM;
|
||||||
|
config.pin_d3 = Y5_GPIO_NUM;
|
||||||
|
config.pin_d4 = Y6_GPIO_NUM;
|
||||||
|
config.pin_d5 = Y7_GPIO_NUM;
|
||||||
|
config.pin_d6 = Y8_GPIO_NUM;
|
||||||
|
config.pin_d7 = Y9_GPIO_NUM;
|
||||||
|
config.pin_xclk = XCLK_GPIO_NUM;
|
||||||
|
config.pin_pclk = PCLK_GPIO_NUM;
|
||||||
|
config.pin_vsync = VSYNC_GPIO_NUM;
|
||||||
|
config.pin_href = HREF_GPIO_NUM;
|
||||||
|
config.pin_sscb_sda = SIOD_GPIO_NUM;
|
||||||
|
config.pin_sscb_scl = SIOC_GPIO_NUM;
|
||||||
|
config.pin_pwdn = PWDN_GPIO_NUM;
|
||||||
|
config.pin_reset = RESET_GPIO_NUM;
|
||||||
|
config.xclk_freq_hz = 20000000;
|
||||||
|
config.pixel_format = PIXFORMAT_JPEG;
|
||||||
|
//init with high specs to pre-allocate larger buffers
|
||||||
|
if(psramFound()){
|
||||||
|
config.frame_size = FRAMESIZE_UXGA;
|
||||||
|
config.jpeg_quality = 10;
|
||||||
|
config.fb_count = 2;
|
||||||
|
} else {
|
||||||
|
config.frame_size = FRAMESIZE_SVGA;
|
||||||
|
config.jpeg_quality = 12;
|
||||||
|
config.fb_count = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// camera init
|
||||||
|
esp_err_t err = esp_camera_init(&config);
|
||||||
|
if (err != ESP_OK) {
|
||||||
|
Serial.printf("Camera init failed with error 0x%x", err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//drop down frame size for higher initial frame rate
|
||||||
|
sensor_t * s = esp_camera_sensor_get();
|
||||||
|
s->set_framesize(s, FRAMESIZE_QVGA);
|
||||||
|
|
||||||
|
WiFi.begin(ssid, password);
|
||||||
|
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
delay(500);
|
||||||
|
Serial.print(".");
|
||||||
|
}
|
||||||
|
Serial.println("");
|
||||||
|
Serial.println("WiFi connected");
|
||||||
|
|
||||||
|
startCameraServer();
|
||||||
|
|
||||||
|
Serial.print("Camera Ready! Use 'http://");
|
||||||
|
Serial.print(WiFi.localIP());
|
||||||
|
Serial.println("' to connect");
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
// put your main code here, to run repeatedly:
|
||||||
|
delay(10000);
|
||||||
|
}
|
||||||
650
CameraWebServer/app_httpd.cpp
Normal file
650
CameraWebServer/app_httpd.cpp
Normal file
@ -0,0 +1,650 @@
|
|||||||
|
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
#include "esp_http_server.h"
|
||||||
|
#include "esp_timer.h"
|
||||||
|
#include "esp_camera.h"
|
||||||
|
#include "img_converters.h"
|
||||||
|
#include "camera_index.h"
|
||||||
|
#include "Arduino.h"
|
||||||
|
|
||||||
|
#include "fb_gfx.h"
|
||||||
|
#include "fd_forward.h"
|
||||||
|
#include "dl_lib.h"
|
||||||
|
#include "fr_forward.h"
|
||||||
|
|
||||||
|
#define ENROLL_CONFIRM_TIMES 5
|
||||||
|
#define FACE_ID_SAVE_NUMBER 7
|
||||||
|
|
||||||
|
#define FACE_COLOR_WHITE 0x00FFFFFF
|
||||||
|
#define FACE_COLOR_BLACK 0x00000000
|
||||||
|
#define FACE_COLOR_RED 0x000000FF
|
||||||
|
#define FACE_COLOR_GREEN 0x0000FF00
|
||||||
|
#define FACE_COLOR_BLUE 0x00FF0000
|
||||||
|
#define FACE_COLOR_YELLOW (FACE_COLOR_RED | FACE_COLOR_GREEN)
|
||||||
|
#define FACE_COLOR_CYAN (FACE_COLOR_BLUE | FACE_COLOR_GREEN)
|
||||||
|
#define FACE_COLOR_PURPLE (FACE_COLOR_BLUE | FACE_COLOR_RED)
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
size_t size; //number of values used for filtering
|
||||||
|
size_t index; //current value index
|
||||||
|
size_t count; //value count
|
||||||
|
int sum;
|
||||||
|
int * values; //array to be filled with values
|
||||||
|
} ra_filter_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
httpd_req_t *req;
|
||||||
|
size_t len;
|
||||||
|
} jpg_chunking_t;
|
||||||
|
|
||||||
|
#define PART_BOUNDARY "123456789000000000000987654321"
|
||||||
|
static const char* _STREAM_CONTENT_TYPE = "multipart/x-mixed-replace;boundary=" PART_BOUNDARY;
|
||||||
|
static const char* _STREAM_BOUNDARY = "\r\n--" PART_BOUNDARY "\r\n";
|
||||||
|
static const char* _STREAM_PART = "Content-Type: image/jpeg\r\nContent-Length: %u\r\n\r\n";
|
||||||
|
|
||||||
|
static ra_filter_t ra_filter;
|
||||||
|
httpd_handle_t stream_httpd = NULL;
|
||||||
|
httpd_handle_t camera_httpd = NULL;
|
||||||
|
|
||||||
|
static mtmn_config_t mtmn_config = {0};
|
||||||
|
static int8_t detection_enabled = 0;
|
||||||
|
static int8_t recognition_enabled = 0;
|
||||||
|
static int8_t is_enrolling = 0;
|
||||||
|
static face_id_list id_list = {0};
|
||||||
|
|
||||||
|
static ra_filter_t * ra_filter_init(ra_filter_t * filter, size_t sample_size){
|
||||||
|
memset(filter, 0, sizeof(ra_filter_t));
|
||||||
|
|
||||||
|
filter->values = (int *)malloc(sample_size * sizeof(int));
|
||||||
|
if(!filter->values){
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
memset(filter->values, 0, sample_size * sizeof(int));
|
||||||
|
|
||||||
|
filter->size = sample_size;
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ra_filter_run(ra_filter_t * filter, int value){
|
||||||
|
if(!filter->values){
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
filter->sum -= filter->values[filter->index];
|
||||||
|
filter->values[filter->index] = value;
|
||||||
|
filter->sum += filter->values[filter->index];
|
||||||
|
filter->index++;
|
||||||
|
filter->index = filter->index % filter->size;
|
||||||
|
if (filter->count < filter->size) {
|
||||||
|
filter->count++;
|
||||||
|
}
|
||||||
|
return filter->sum / filter->count;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void rgb_print(dl_matrix3du_t *image_matrix, uint32_t color, const char * str){
|
||||||
|
fb_data_t fb;
|
||||||
|
fb.width = image_matrix->w;
|
||||||
|
fb.height = image_matrix->h;
|
||||||
|
fb.data = image_matrix->item;
|
||||||
|
fb.bytes_per_pixel = 3;
|
||||||
|
fb.format = FB_BGR888;
|
||||||
|
fb_gfx_print(&fb, (fb.width - (strlen(str) * 14)) / 2, 10, color, str);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){
|
||||||
|
char loc_buf[64];
|
||||||
|
char * temp = loc_buf;
|
||||||
|
int len;
|
||||||
|
va_list arg;
|
||||||
|
va_list copy;
|
||||||
|
va_start(arg, format);
|
||||||
|
va_copy(copy, arg);
|
||||||
|
len = vsnprintf(loc_buf, sizeof(loc_buf), format, arg);
|
||||||
|
va_end(copy);
|
||||||
|
if(len >= sizeof(loc_buf)){
|
||||||
|
temp = (char*)malloc(len+1);
|
||||||
|
if(temp == NULL) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
vsnprintf(temp, len+1, format, arg);
|
||||||
|
va_end(arg);
|
||||||
|
rgb_print(image_matrix, color, temp);
|
||||||
|
if(len > 64){
|
||||||
|
free(temp);
|
||||||
|
}
|
||||||
|
return len;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void draw_face_boxes(dl_matrix3du_t *image_matrix, box_array_t *boxes, int face_id){
|
||||||
|
int x, y, w, h, i;
|
||||||
|
uint32_t color = FACE_COLOR_YELLOW;
|
||||||
|
if(face_id < 0){
|
||||||
|
color = FACE_COLOR_RED;
|
||||||
|
} else if(face_id > 0){
|
||||||
|
color = FACE_COLOR_GREEN;
|
||||||
|
}
|
||||||
|
fb_data_t fb;
|
||||||
|
fb.width = image_matrix->w;
|
||||||
|
fb.height = image_matrix->h;
|
||||||
|
fb.data = image_matrix->item;
|
||||||
|
fb.bytes_per_pixel = 3;
|
||||||
|
fb.format = FB_BGR888;
|
||||||
|
for (i = 0; i < boxes->len; i++){
|
||||||
|
// rectangle box
|
||||||
|
x = (int)boxes->box[i].box_p[0];
|
||||||
|
y = (int)boxes->box[i].box_p[1];
|
||||||
|
w = (int)boxes->box[i].box_p[2] - x + 1;
|
||||||
|
h = (int)boxes->box[i].box_p[3] - y + 1;
|
||||||
|
fb_gfx_drawFastHLine(&fb, x, y, w, color);
|
||||||
|
fb_gfx_drawFastHLine(&fb, x, y+h-1, w, color);
|
||||||
|
fb_gfx_drawFastVLine(&fb, x, y, h, color);
|
||||||
|
fb_gfx_drawFastVLine(&fb, x+w-1, y, h, color);
|
||||||
|
#if 0
|
||||||
|
// landmark
|
||||||
|
int x0, y0, j;
|
||||||
|
for (j = 0; j < 10; j+=2) {
|
||||||
|
x0 = (int)boxes->landmark[i].landmark_p[j];
|
||||||
|
y0 = (int)boxes->landmark[i].landmark_p[j+1];
|
||||||
|
fb_gfx_fillRect(&fb, x0, y0, 3, 3, color);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){
|
||||||
|
dl_matrix3du_t *aligned_face = NULL;
|
||||||
|
int matched_id = 0;
|
||||||
|
|
||||||
|
aligned_face = dl_matrix3du_alloc(1, FACE_WIDTH, FACE_HEIGHT, 3);
|
||||||
|
if(!aligned_face){
|
||||||
|
Serial.println("Could not allocate face recognition buffer");
|
||||||
|
return matched_id;
|
||||||
|
}
|
||||||
|
if (align_face(net_boxes, image_matrix, aligned_face) == ESP_OK){
|
||||||
|
if (is_enrolling == 1){
|
||||||
|
int8_t left_sample_face = enroll_face(&id_list, aligned_face);
|
||||||
|
|
||||||
|
if(left_sample_face == (ENROLL_CONFIRM_TIMES - 1)){
|
||||||
|
Serial.printf("Enrolling Face ID: %d\n", id_list.tail);
|
||||||
|
}
|
||||||
|
Serial.printf("Enrolling Face ID: %d sample %d\n", id_list.tail, ENROLL_CONFIRM_TIMES - left_sample_face);
|
||||||
|
rgb_printf(image_matrix, FACE_COLOR_CYAN, "ID[%u] Sample[%u]", id_list.tail, ENROLL_CONFIRM_TIMES - left_sample_face);
|
||||||
|
if (left_sample_face == 0){
|
||||||
|
is_enrolling = 0;
|
||||||
|
Serial.printf("Enrolled Face ID: %d\n", id_list.tail);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
matched_id = recognize_face(&id_list, aligned_face);
|
||||||
|
if (matched_id >= 0) {
|
||||||
|
Serial.printf("Match Face ID: %u\n", matched_id);
|
||||||
|
rgb_printf(image_matrix, FACE_COLOR_GREEN, "Hello Subject %u", matched_id);
|
||||||
|
} else {
|
||||||
|
Serial.println("No Match Found");
|
||||||
|
rgb_print(image_matrix, FACE_COLOR_RED, "Intruder Alert!");
|
||||||
|
matched_id = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Serial.println("Face Not Aligned");
|
||||||
|
//rgb_print(image_matrix, FACE_COLOR_YELLOW, "Human Detected");
|
||||||
|
}
|
||||||
|
|
||||||
|
dl_matrix3du_free(aligned_face);
|
||||||
|
return matched_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
static size_t jpg_encode_stream(void * arg, size_t index, const void* data, size_t len){
|
||||||
|
jpg_chunking_t *j = (jpg_chunking_t *)arg;
|
||||||
|
if(!index){
|
||||||
|
j->len = 0;
|
||||||
|
}
|
||||||
|
if(httpd_resp_send_chunk(j->req, (const char *)data, len) != ESP_OK){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
j->len += len;
|
||||||
|
return len;
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t capture_handler(httpd_req_t *req){
|
||||||
|
camera_fb_t * fb = NULL;
|
||||||
|
esp_err_t res = ESP_OK;
|
||||||
|
int64_t fr_start = esp_timer_get_time();
|
||||||
|
|
||||||
|
fb = esp_camera_fb_get();
|
||||||
|
if (!fb) {
|
||||||
|
Serial.println("Camera capture failed");
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
httpd_resp_set_type(req, "image/jpeg");
|
||||||
|
httpd_resp_set_hdr(req, "Content-Disposition", "inline; filename=capture.jpg");
|
||||||
|
|
||||||
|
size_t out_len, out_width, out_height;
|
||||||
|
uint8_t * out_buf;
|
||||||
|
bool s;
|
||||||
|
bool detected = false;
|
||||||
|
int face_id = 0;
|
||||||
|
if(!detection_enabled || fb->width > 400){
|
||||||
|
size_t fb_len = 0;
|
||||||
|
if(fb->format == PIXFORMAT_JPEG){
|
||||||
|
fb_len = fb->len;
|
||||||
|
res = httpd_resp_send(req, (const char *)fb->buf, fb->len);
|
||||||
|
} else {
|
||||||
|
jpg_chunking_t jchunk = {req, 0};
|
||||||
|
res = frame2jpg_cb(fb, 80, jpg_encode_stream, &jchunk)?ESP_OK:ESP_FAIL;
|
||||||
|
httpd_resp_send_chunk(req, NULL, 0);
|
||||||
|
fb_len = jchunk.len;
|
||||||
|
}
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
int64_t fr_end = esp_timer_get_time();
|
||||||
|
Serial.printf("JPG: %uB %ums\n", (uint32_t)(fb_len), (uint32_t)((fr_end - fr_start)/1000));
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
dl_matrix3du_t *image_matrix = dl_matrix3du_alloc(1, fb->width, fb->height, 3);
|
||||||
|
if (!image_matrix) {
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
Serial.println("dl_matrix3du_alloc failed");
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
out_buf = image_matrix->item;
|
||||||
|
out_len = fb->width * fb->height * 3;
|
||||||
|
out_width = fb->width;
|
||||||
|
out_height = fb->height;
|
||||||
|
|
||||||
|
s = fmt2rgb888(fb->buf, fb->len, fb->format, out_buf);
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
if(!s){
|
||||||
|
dl_matrix3du_free(image_matrix);
|
||||||
|
Serial.println("to rgb888 failed");
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
box_array_t *net_boxes = face_detect(image_matrix, &mtmn_config);
|
||||||
|
|
||||||
|
if (net_boxes){
|
||||||
|
detected = true;
|
||||||
|
if(recognition_enabled){
|
||||||
|
face_id = run_face_recognition(image_matrix, net_boxes);
|
||||||
|
}
|
||||||
|
draw_face_boxes(image_matrix, net_boxes, face_id);
|
||||||
|
free(net_boxes->box);
|
||||||
|
free(net_boxes->landmark);
|
||||||
|
free(net_boxes);
|
||||||
|
}
|
||||||
|
|
||||||
|
jpg_chunking_t jchunk = {req, 0};
|
||||||
|
s = fmt2jpg_cb(out_buf, out_len, out_width, out_height, PIXFORMAT_RGB888, 90, jpg_encode_stream, &jchunk);
|
||||||
|
dl_matrix3du_free(image_matrix);
|
||||||
|
if(!s){
|
||||||
|
Serial.println("JPEG compression failed");
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
int64_t fr_end = esp_timer_get_time();
|
||||||
|
Serial.printf("FACE: %uB %ums %s%d\n", (uint32_t)(jchunk.len), (uint32_t)((fr_end - fr_start)/1000), detected?"DETECTED ":"", face_id);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t stream_handler(httpd_req_t *req){
|
||||||
|
camera_fb_t * fb = NULL;
|
||||||
|
esp_err_t res = ESP_OK;
|
||||||
|
size_t _jpg_buf_len = 0;
|
||||||
|
uint8_t * _jpg_buf = NULL;
|
||||||
|
char * part_buf[64];
|
||||||
|
dl_matrix3du_t *image_matrix = NULL;
|
||||||
|
bool detected = false;
|
||||||
|
int face_id = 0;
|
||||||
|
int64_t fr_start = 0;
|
||||||
|
int64_t fr_ready = 0;
|
||||||
|
int64_t fr_face = 0;
|
||||||
|
int64_t fr_recognize = 0;
|
||||||
|
int64_t fr_encode = 0;
|
||||||
|
|
||||||
|
static int64_t last_frame = 0;
|
||||||
|
if(!last_frame) {
|
||||||
|
last_frame = esp_timer_get_time();
|
||||||
|
}
|
||||||
|
|
||||||
|
res = httpd_resp_set_type(req, _STREAM_CONTENT_TYPE);
|
||||||
|
if(res != ESP_OK){
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
while(true){
|
||||||
|
detected = false;
|
||||||
|
face_id = 0;
|
||||||
|
fb = esp_camera_fb_get();
|
||||||
|
if (!fb) {
|
||||||
|
Serial.println("Camera capture failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
} else {
|
||||||
|
fr_start = esp_timer_get_time();
|
||||||
|
fr_ready = fr_start;
|
||||||
|
fr_face = fr_start;
|
||||||
|
fr_encode = fr_start;
|
||||||
|
fr_recognize = fr_start;
|
||||||
|
if(!detection_enabled || fb->width > 400){
|
||||||
|
if(fb->format != PIXFORMAT_JPEG){
|
||||||
|
bool jpeg_converted = frame2jpg(fb, 80, &_jpg_buf, &_jpg_buf_len);
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
if(!jpeg_converted){
|
||||||
|
Serial.println("JPEG compression failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_jpg_buf_len = fb->len;
|
||||||
|
_jpg_buf = fb->buf;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
image_matrix = dl_matrix3du_alloc(1, fb->width, fb->height, 3);
|
||||||
|
|
||||||
|
if (!image_matrix) {
|
||||||
|
Serial.println("dl_matrix3du_alloc failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
} else {
|
||||||
|
if(!fmt2rgb888(fb->buf, fb->len, fb->format, image_matrix->item)){
|
||||||
|
Serial.println("fmt2rgb888 failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
} else {
|
||||||
|
fr_ready = esp_timer_get_time();
|
||||||
|
box_array_t *net_boxes = NULL;
|
||||||
|
if(detection_enabled){
|
||||||
|
net_boxes = face_detect(image_matrix, &mtmn_config);
|
||||||
|
}
|
||||||
|
fr_face = esp_timer_get_time();
|
||||||
|
fr_recognize = fr_face;
|
||||||
|
if (net_boxes || fb->format != PIXFORMAT_JPEG){
|
||||||
|
if(net_boxes){
|
||||||
|
detected = true;
|
||||||
|
if(recognition_enabled){
|
||||||
|
face_id = run_face_recognition(image_matrix, net_boxes);
|
||||||
|
}
|
||||||
|
fr_recognize = esp_timer_get_time();
|
||||||
|
draw_face_boxes(image_matrix, net_boxes, face_id);
|
||||||
|
free(net_boxes->box);
|
||||||
|
free(net_boxes->landmark);
|
||||||
|
free(net_boxes);
|
||||||
|
}
|
||||||
|
if(!fmt2jpg(image_matrix->item, fb->width*fb->height*3, fb->width, fb->height, PIXFORMAT_RGB888, 90, &_jpg_buf, &_jpg_buf_len)){
|
||||||
|
Serial.println("fmt2jpg failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
}
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
} else {
|
||||||
|
_jpg_buf = fb->buf;
|
||||||
|
_jpg_buf_len = fb->len;
|
||||||
|
}
|
||||||
|
fr_encode = esp_timer_get_time();
|
||||||
|
}
|
||||||
|
dl_matrix3du_free(image_matrix);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
size_t hlen = snprintf((char *)part_buf, 64, _STREAM_PART, _jpg_buf_len);
|
||||||
|
res = httpd_resp_send_chunk(req, (const char *)part_buf, hlen);
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
res = httpd_resp_send_chunk(req, (const char *)_jpg_buf, _jpg_buf_len);
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY));
|
||||||
|
}
|
||||||
|
if(fb){
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
_jpg_buf = NULL;
|
||||||
|
} else if(_jpg_buf){
|
||||||
|
free(_jpg_buf);
|
||||||
|
_jpg_buf = NULL;
|
||||||
|
}
|
||||||
|
if(res != ESP_OK){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
int64_t fr_end = esp_timer_get_time();
|
||||||
|
|
||||||
|
int64_t ready_time = (fr_ready - fr_start)/1000;
|
||||||
|
int64_t face_time = (fr_face - fr_ready)/1000;
|
||||||
|
int64_t recognize_time = (fr_recognize - fr_face)/1000;
|
||||||
|
int64_t encode_time = (fr_encode - fr_recognize)/1000;
|
||||||
|
int64_t process_time = (fr_encode - fr_start)/1000;
|
||||||
|
|
||||||
|
int64_t frame_time = fr_end - last_frame;
|
||||||
|
last_frame = fr_end;
|
||||||
|
frame_time /= 1000;
|
||||||
|
uint32_t avg_frame_time = ra_filter_run(&ra_filter, frame_time);
|
||||||
|
Serial.printf("MJPG: %uB %ums (%.1ffps), AVG: %ums (%.1ffps), %u+%u+%u+%u=%u %s%d\n",
|
||||||
|
(uint32_t)(_jpg_buf_len),
|
||||||
|
(uint32_t)frame_time, 1000.0 / (uint32_t)frame_time,
|
||||||
|
avg_frame_time, 1000.0 / avg_frame_time,
|
||||||
|
(uint32_t)ready_time, (uint32_t)face_time, (uint32_t)recognize_time, (uint32_t)encode_time, (uint32_t)process_time,
|
||||||
|
(detected)?"DETECTED ":"", face_id
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
last_frame = 0;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t cmd_handler(httpd_req_t *req){
|
||||||
|
char* buf;
|
||||||
|
size_t buf_len;
|
||||||
|
char variable[32] = {0,};
|
||||||
|
char value[32] = {0,};
|
||||||
|
|
||||||
|
buf_len = httpd_req_get_url_query_len(req) + 1;
|
||||||
|
if (buf_len > 1) {
|
||||||
|
buf = (char*)malloc(buf_len);
|
||||||
|
if(!buf){
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
if (httpd_req_get_url_query_str(req, buf, buf_len) == ESP_OK) {
|
||||||
|
if (httpd_query_key_value(buf, "var", variable, sizeof(variable)) == ESP_OK &&
|
||||||
|
httpd_query_key_value(buf, "val", value, sizeof(value)) == ESP_OK) {
|
||||||
|
} else {
|
||||||
|
free(buf);
|
||||||
|
httpd_resp_send_404(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
free(buf);
|
||||||
|
httpd_resp_send_404(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
free(buf);
|
||||||
|
} else {
|
||||||
|
httpd_resp_send_404(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
int val = atoi(value);
|
||||||
|
sensor_t * s = esp_camera_sensor_get();
|
||||||
|
int res = 0;
|
||||||
|
|
||||||
|
if(!strcmp(variable, "framesize")) {
|
||||||
|
if(s->pixformat == PIXFORMAT_JPEG) res = s->set_framesize(s, (framesize_t)val);
|
||||||
|
}
|
||||||
|
else if(!strcmp(variable, "quality")) res = s->set_quality(s, val);
|
||||||
|
else if(!strcmp(variable, "contrast")) res = s->set_contrast(s, val);
|
||||||
|
else if(!strcmp(variable, "brightness")) res = s->set_brightness(s, val);
|
||||||
|
else if(!strcmp(variable, "saturation")) res = s->set_saturation(s, val);
|
||||||
|
else if(!strcmp(variable, "gainceiling")) res = s->set_gainceiling(s, (gainceiling_t)val);
|
||||||
|
else if(!strcmp(variable, "colorbar")) res = s->set_colorbar(s, val);
|
||||||
|
else if(!strcmp(variable, "awb")) res = s->set_whitebal(s, val);
|
||||||
|
else if(!strcmp(variable, "agc")) res = s->set_gain_ctrl(s, val);
|
||||||
|
else if(!strcmp(variable, "aec")) res = s->set_exposure_ctrl(s, val);
|
||||||
|
else if(!strcmp(variable, "hmirror")) res = s->set_hmirror(s, val);
|
||||||
|
else if(!strcmp(variable, "vflip")) res = s->set_vflip(s, val);
|
||||||
|
else if(!strcmp(variable, "awb_gain")) res = s->set_awb_gain(s, val);
|
||||||
|
else if(!strcmp(variable, "agc_gain")) res = s->set_agc_gain(s, val);
|
||||||
|
else if(!strcmp(variable, "aec_value")) res = s->set_aec_value(s, val);
|
||||||
|
else if(!strcmp(variable, "aec2")) res = s->set_aec2(s, val);
|
||||||
|
else if(!strcmp(variable, "dcw")) res = s->set_dcw(s, val);
|
||||||
|
else if(!strcmp(variable, "bpc")) res = s->set_bpc(s, val);
|
||||||
|
else if(!strcmp(variable, "wpc")) res = s->set_wpc(s, val);
|
||||||
|
else if(!strcmp(variable, "raw_gma")) res = s->set_raw_gma(s, val);
|
||||||
|
else if(!strcmp(variable, "lenc")) res = s->set_lenc(s, val);
|
||||||
|
else if(!strcmp(variable, "special_effect")) res = s->set_special_effect(s, val);
|
||||||
|
else if(!strcmp(variable, "wb_mode")) res = s->set_wb_mode(s, val);
|
||||||
|
else if(!strcmp(variable, "ae_level")) res = s->set_ae_level(s, val);
|
||||||
|
else if(!strcmp(variable, "face_detect")) {
|
||||||
|
detection_enabled = val;
|
||||||
|
if(!detection_enabled) {
|
||||||
|
recognition_enabled = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(!strcmp(variable, "face_enroll")) is_enrolling = val;
|
||||||
|
else if(!strcmp(variable, "face_recognize")) {
|
||||||
|
recognition_enabled = val;
|
||||||
|
if(recognition_enabled){
|
||||||
|
detection_enabled = val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
res = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(res){
|
||||||
|
return httpd_resp_send_500(req);
|
||||||
|
}
|
||||||
|
|
||||||
|
httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*");
|
||||||
|
return httpd_resp_send(req, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t status_handler(httpd_req_t *req){
|
||||||
|
static char json_response[1024];
|
||||||
|
|
||||||
|
sensor_t * s = esp_camera_sensor_get();
|
||||||
|
char * p = json_response;
|
||||||
|
*p++ = '{';
|
||||||
|
|
||||||
|
p+=sprintf(p, "\"framesize\":%u,", s->status.framesize);
|
||||||
|
p+=sprintf(p, "\"quality\":%u,", s->status.quality);
|
||||||
|
p+=sprintf(p, "\"brightness\":%d,", s->status.brightness);
|
||||||
|
p+=sprintf(p, "\"contrast\":%d,", s->status.contrast);
|
||||||
|
p+=sprintf(p, "\"saturation\":%d,", s->status.saturation);
|
||||||
|
p+=sprintf(p, "\"special_effect\":%u,", s->status.special_effect);
|
||||||
|
p+=sprintf(p, "\"wb_mode\":%u,", s->status.wb_mode);
|
||||||
|
p+=sprintf(p, "\"awb\":%u,", s->status.awb);
|
||||||
|
p+=sprintf(p, "\"awb_gain\":%u,", s->status.awb_gain);
|
||||||
|
p+=sprintf(p, "\"aec\":%u,", s->status.aec);
|
||||||
|
p+=sprintf(p, "\"aec2\":%u,", s->status.aec2);
|
||||||
|
p+=sprintf(p, "\"ae_level\":%d,", s->status.ae_level);
|
||||||
|
p+=sprintf(p, "\"aec_value\":%u,", s->status.aec_value);
|
||||||
|
p+=sprintf(p, "\"agc\":%u,", s->status.agc);
|
||||||
|
p+=sprintf(p, "\"agc_gain\":%u,", s->status.agc_gain);
|
||||||
|
p+=sprintf(p, "\"gainceiling\":%u,", s->status.gainceiling);
|
||||||
|
p+=sprintf(p, "\"bpc\":%u,", s->status.bpc);
|
||||||
|
p+=sprintf(p, "\"wpc\":%u,", s->status.wpc);
|
||||||
|
p+=sprintf(p, "\"raw_gma\":%u,", s->status.raw_gma);
|
||||||
|
p+=sprintf(p, "\"lenc\":%u,", s->status.lenc);
|
||||||
|
p+=sprintf(p, "\"vflip\":%u,", s->status.vflip);
|
||||||
|
p+=sprintf(p, "\"hmirror\":%u,", s->status.hmirror);
|
||||||
|
p+=sprintf(p, "\"dcw\":%u,", s->status.dcw);
|
||||||
|
p+=sprintf(p, "\"colorbar\":%u,", s->status.colorbar);
|
||||||
|
p+=sprintf(p, "\"face_detect\":%u,", detection_enabled);
|
||||||
|
p+=sprintf(p, "\"face_enroll\":%u,", is_enrolling);
|
||||||
|
p+=sprintf(p, "\"face_recognize\":%u", recognition_enabled);
|
||||||
|
*p++ = '}';
|
||||||
|
*p++ = 0;
|
||||||
|
httpd_resp_set_type(req, "application/json");
|
||||||
|
httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*");
|
||||||
|
return httpd_resp_send(req, json_response, strlen(json_response));
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t index_handler(httpd_req_t *req){
|
||||||
|
httpd_resp_set_type(req, "text/html");
|
||||||
|
httpd_resp_set_hdr(req, "Content-Encoding", "gzip");
|
||||||
|
return httpd_resp_send(req, (const char *)index_html_gz, index_html_gz_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
void startCameraServer(){
|
||||||
|
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
|
||||||
|
|
||||||
|
httpd_uri_t index_uri = {
|
||||||
|
.uri = "/",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = index_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t status_uri = {
|
||||||
|
.uri = "/status",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = status_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t cmd_uri = {
|
||||||
|
.uri = "/control",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = cmd_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t capture_uri = {
|
||||||
|
.uri = "/capture",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = capture_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t stream_uri = {
|
||||||
|
.uri = "/stream",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = stream_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ra_filter_init(&ra_filter, 20);
|
||||||
|
|
||||||
|
mtmn_config.min_face = 80;
|
||||||
|
mtmn_config.pyramid = 0.7;
|
||||||
|
mtmn_config.p_threshold.score = 0.6;
|
||||||
|
mtmn_config.p_threshold.nms = 0.7;
|
||||||
|
mtmn_config.r_threshold.score = 0.7;
|
||||||
|
mtmn_config.r_threshold.nms = 0.7;
|
||||||
|
mtmn_config.r_threshold.candidate_number = 4;
|
||||||
|
mtmn_config.o_threshold.score = 0.7;
|
||||||
|
mtmn_config.o_threshold.nms = 0.4;
|
||||||
|
mtmn_config.o_threshold.candidate_number = 1;
|
||||||
|
|
||||||
|
face_id_init(&id_list, FACE_ID_SAVE_NUMBER, ENROLL_CONFIRM_TIMES);
|
||||||
|
|
||||||
|
Serial.printf("Starting web server on port: '%d'\n", config.server_port);
|
||||||
|
if (httpd_start(&camera_httpd, &config) == ESP_OK) {
|
||||||
|
httpd_register_uri_handler(camera_httpd, &index_uri);
|
||||||
|
httpd_register_uri_handler(camera_httpd, &cmd_uri);
|
||||||
|
httpd_register_uri_handler(camera_httpd, &status_uri);
|
||||||
|
httpd_register_uri_handler(camera_httpd, &capture_uri);
|
||||||
|
}
|
||||||
|
|
||||||
|
config.server_port += 1;
|
||||||
|
config.ctrl_port += 1;
|
||||||
|
Serial.printf("Starting stream server on port: '%d'\n", config.server_port);
|
||||||
|
if (httpd_start(&stream_httpd, &config) == ESP_OK) {
|
||||||
|
httpd_register_uri_handler(stream_httpd, &stream_uri);
|
||||||
|
}
|
||||||
|
}
|
||||||
233
CameraWebServer/camera_index.h
Normal file
233
CameraWebServer/camera_index.h
Normal file
@ -0,0 +1,233 @@
|
|||||||
|
//File: index.html.gz, Size: 3663
|
||||||
|
#define index_html_gz_len 3663
|
||||||
|
const uint8_t index_html_gz[] = {
|
||||||
|
0x1F, 0x8B, 0x08, 0x08, 0x60, 0x15, 0x36, 0x5C, 0x00, 0x03, 0x69, 0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
|
0x0A, 0x9E, 0xD6, 0x15, 0xE4, 0x3B, 0x8A, 0x46, 0x03, 0x02, 0xDE, 0x46, 0x22, 0x14, 0x3C, 0x38,
|
||||||
|
0x03, 0x61, 0x3F, 0xC0, 0xFA, 0x74, 0x1D, 0x0C, 0x49, 0x44, 0xAC, 0x06, 0x62, 0x89, 0x05, 0x7D,
|
||||||
|
0x34, 0x2E, 0xE7, 0xAC, 0xE0, 0x87, 0x89, 0x25, 0x90, 0x6A, 0xB6, 0x06, 0x27, 0x87, 0x3D, 0xA5,
|
||||||
|
0xAC, 0xF0, 0xD0, 0xD2, 0x13, 0x73, 0x85, 0x89, 0x39, 0x73, 0xFF, 0x29, 0x28, 0xA7, 0x19, 0xFB,
|
||||||
|
0xA8, 0x13, 0x31, 0x46, 0xFD, 0x70, 0x8D, 0x9B, 0x3F, 0x45, 0x21, 0x23, 0xEE, 0xA4, 0x9C, 0x80,
|
||||||
|
0x62, 0x86, 0x03, 0x04, 0xF5, 0xAA, 0x83, 0xD9, 0x08, 0x63, 0x48, 0x5D, 0x1F, 0x0D, 0x01, 0xEE,
|
||||||
|
0x6E, 0xD7, 0xC3, 0x53, 0x3B, 0x0A, 0x42, 0xA8, 0x1C, 0x03, 0x4A, 0x80, 0x32, 0x68, 0x16, 0x00,
|
||||||
|
0xC8, 0x13, 0x96, 0xED, 0xCE, 0x94, 0x46, 0x8C, 0xAB, 0x04, 0x2A, 0x52, 0x90, 0x47, 0xD8, 0x04,
|
||||||
|
0x46, 0xD2, 0xED, 0xD5, 0xD4, 0xE7, 0xD5, 0x39, 0x1E, 0xD3, 0xEE, 0x61, 0xFB, 0x0E, 0x3B, 0x3F,
|
||||||
|
0x15, 0xCB, 0x85, 0x28, 0x35, 0x15, 0xE2, 0x0F, 0x22, 0x56, 0xE6, 0x05, 0x61, 0xB0, 0xC6, 0x1E,
|
||||||
|
0xE1, 0x89, 0x64, 0x8A, 0x7A, 0x3D, 0x8B, 0x59, 0xF3, 0xC9, 0x60, 0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, 0x73, 0x79, 0xBD, 0x55, 0x89, 0x58,
|
||||||
|
0xA2, 0x2D, 0x1A, 0xAB, 0xD6, 0xE9, 0xC9, 0x3A, 0x7F, 0xEF, 0x00, 0x47, 0x47, 0x74, 0x70, 0x1F,
|
||||||
|
0x87, 0xE1, 0xC6, 0x88, 0xCC, 0x58, 0x55, 0xEB, 0x2A, 0x1B, 0xEF, 0x82, 0x4B, 0xB9, 0xBE, 0x03,
|
||||||
|
0x2E, 0x39, 0x75, 0x24, 0x34, 0xE5, 0x7A, 0x02, 0x4D, 0x5D, 0x9D, 0x65, 0xC4, 0xD7, 0x04, 0x66,
|
||||||
|
0x9D, 0xB6, 0xBB, 0xE0, 0xC2, 0x9B, 0x78, 0x80, 0x42, 0xB6, 0x31, 0x2A, 0x29, 0x23, 0x94, 0xB5,
|
||||||
|
0x64, 0x74, 0x30, 0x44, 0x32, 0x55, 0xFE, 0x01, 0x78, 0x84, 0x88, 0x45, 0x81, 0x78, 0xFA, 0xBE,
|
||||||
|
0x31, 0x22, 0x33, 0x56, 0xE8, 0x87, 0xD9, 0xF8, 0x60, 0xA8, 0xE4, 0xD4, 0xF9, 0x27, 0xE0, 0x32,
|
||||||
|
0xC0, 0x36, 0x41, 0xDE, 0x07, 0xEC, 0xBA, 0xD0, 0xB2, 0x36, 0xC7, 0xA6, 0xC0, 0x0E, 0xF8, 0xC8,
|
||||||
|
0x63, 0xE5, 0x46, 0x1C, 0x6F, 0xBC, 0x46, 0x9C, 0x13, 0xF7, 0xB5, 0x16, 0x8A, 0xD5, 0xE5, 0xEB,
|
||||||
|
0x96, 0x37, 0x34, 0xD3, 0x73, 0xCB, 0x15, 0x42, 0x0D, 0x84, 0xE0, 0xAE, 0xB8, 0xE7, 0xDB, 0x5A,
|
||||||
|
0x46, 0x5D, 0xB5, 0x5E, 0x04, 0x68, 0x22, 0xBE, 0x86, 0xDD, 0x65, 0xD1, 0xF3, 0x1E, 0x3B, 0xCA,
|
||||||
|
0xAF, 0x70, 0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x79, 0x81, 0xC0, 0x36, 0xA0, 0x78, 0xD3,
|
||||||
|
0x56, 0x6E, 0x6F, 0xDE, 0xDC, 0xBE, 0x7D, 0xBF, 0x9F, 0xEA, 0x00, 0x73, 0x1E, 0xA8, 0x30, 0x70,
|
||||||
|
0x6B, 0x0F, 0x5D, 0x13, 0x40, 0x89, 0xFA, 0x36, 0x38, 0xD5, 0x25, 0x50, 0xD7, 0xB7, 0xEF, 0xF6,
|
||||||
|
0x85, 0x52, 0xFD, 0x70, 0x30, 0xD5, 0xBF, 0x07, 0x9C, 0x3E, 0x78, 0x78, 0x88, 0xBD, 0x2D, 0xB0,
|
||||||
|
0x92, 0x8C, 0x1C, 0x2F, 0xE5, 0x15, 0x1F, 0x1D, 0xEC, 0x46, 0x2E, 0x53, 0xE5, 0x1F, 0x70, 0x1B,
|
||||||
|
0x07, 0x51, 0xF1, 0x41, 0x28, 0xBD, 0x4D, 0xF2, 0x48, 0x4E, 0xD5, 0xBA, 0x19, 0x0F, 0x68, 0x18,
|
||||||
|
0x05, 0x0F, 0x6C, 0xA8, 0xCB, 0x11, 0xD9, 0xE5, 0xC9, 0xE0, 0x4C, 0x15, 0x89, 0x48, 0xFA, 0x68,
|
||||||
|
0x90, 0x3F, 0xD9, 0xCF, 0x30, 0xA9, 0x57, 0x1B, 0x5F, 0x15, 0x15, 0x2E, 0xFC, 0x5B, 0x02, 0xD3,
|
||||||
|
0xDD, 0xA2, 0xEF, 0x74, 0x79, 0xDF, 0x79, 0xD1, 0xDE, 0x4F, 0x29, 0xEB, 0x1E, 0xAC, 0xE1, 0x74,
|
||||||
|
0x0F, 0xDA, 0x70, 0x14, 0xF9, 0x6D, 0x67, 0x06, 0xD3, 0x96, 0x37, 0x11, 0x09, 0x23, 0xDC, 0x3B,
|
||||||
|
0x6F, 0x73, 0x03, 0x91, 0x7F, 0xA8, 0x3E, 0xDE, 0x25, 0x75, 0x52, 0x35, 0x8A, 0x99, 0x73, 0x32,
|
||||||
|
0xCB, 0x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43, 0x18, 0xBC, 0x22, 0x21, 0xC3, 0xE0, 0x05, 0xAD, 0x74, 0xFD,
|
||||||
|
0xF6, 0x75, 0x5B, 0x6E, 0x51, 0x79, 0x45, 0x91, 0x83, 0x9D, 0x92, 0xE1, 0x46, 0xBE, 0x90, 0xA3,
|
||||||
|
0xE9, 0xD3, 0x74, 0xA8, 0x74, 0xB4, 0x2B, 0x7D, 0xEA, 0x41, 0xD0, 0xB6, 0x9B, 0xB2, 0x3C, 0x68,
|
||||||
|
0x57, 0x15, 0x9E, 0xE3, 0xFA, 0xD4, 0x46, 0x21, 0x2E, 0xA5, 0x89, 0x5E, 0x32, 0xDB, 0xAD, 0xAB,
|
||||||
|
0x4A, 0xB2, 0xF6, 0xB9, 0xA8, 0xF1, 0x0D, 0x4F, 0x60, 0xF4, 0x5D, 0x53, 0x10, 0x89, 0x47, 0x8A,
|
||||||
|
0x25, 0x53, 0x8C, 0xE5, 0x97, 0xF3, 0x65, 0xEA, 0x63, 0xC9, 0x22, 0x1E, 0x5C, 0xE6, 0x89, 0x65,
|
||||||
|
0x64, 0xA5, 0xD4, 0x51, 0xA7, 0x4F, 0x18, 0xA7, 0x2C, 0xD5, 0x4A, 0x09, 0x55, 0x52, 0x4A, 0xCC,
|
||||||
|
0x00, 0xB3, 0x28, 0xF0, 0x9B, 0x31, 0x00, 0x1B, 0x32, 0xE5, 0xBA, 0xF5, 0xF1, 0x87, 0xA9, 0x1D,
|
||||||
|
0x1F, 0x8B, 0x97, 0x5D, 0xA9, 0x77, 0x31, 0x44, 0x41, 0xEB, 0x87, 0xE9, 0x55, 0x85, 0x38, 0xF1,
|
||||||
|
0x63, 0x98, 0x03, 0xC6, 0xED, 0xF8, 0x63, 0xD3, 0xE5, 0xFF, 0x71, 0x41, 0xBB, 0xD6, 0x2B, 0xAC,
|
||||||
|
0x87, 0x7D, 0xED, 0xA6, 0x65, 0x4D, 0x39, 0x37, 0xF5, 0x70, 0xC5, 0xA3, 0x5D, 0xED, 0x63, 0x80,
|
||||||
|
0x3F, 0x47, 0x18, 0x84, 0x31, 0xAA, 0xFC, 0x30, 0xBD, 0x8E, 0x15, 0x97, 0xF8, 0x24, 0xEC, 0x61,
|
||||||
|
0xC7, 0x50, 0x42, 0x86, 0x58, 0x14, 0x9A, 0x70, 0xFA, 0xA6, 0x22, 0xC7, 0xF1, 0x47, 0x3D, 0xD6,
|
||||||
|
0x63, 0x98, 0x46, 0xB1, 0x5B, 0x99, 0x97, 0x3D, 0x6A, 0x8B, 0x57, 0x3A, 0x2B, 0x34, 0x20, 0x5D,
|
||||||
|
0xE2, 0x37, 0xA5, 0x6E, 0xB8, 0x75, 0x05, 0x33, 0x81, 0x7B, 0x78, 0x48, 0x71, 0x00, 0x38, 0x1A,
|
||||||
|
0x5A, 0x49, 0xC6, 0x61, 0x49, 0x8F, 0x0D, 0x77, 0x81, 0x20, 0xC0, 0x7D, 0x3A, 0xC4, 0x79, 0x9A,
|
||||||
|
0xEE, 0x72, 0x21, 0x69, 0x7E, 0x96, 0x74, 0xE3, 0x2A, 0xDB, 0x6B, 0xDE, 0x3A, 0xAA, 0xC6, 0x46,
|
||||||
|
0x6F, 0xA5, 0xD0, 0x15, 0x3C, 0xB5, 0xD8, 0x20, 0x2D, 0xED, 0xCA, 0x68, 0x1B, 0xD7, 0x3A, 0x70,
|
||||||
|
0x5E, 0xB7, 0x8E, 0x34, 0x3F, 0xF2, 0xBC, 0xA3, 0xD6, 0xB5, 0xFE, 0xF7, 0xDF, 0xD7, 0x4D, 0x1E,
|
||||||
|
0x04, 0x37, 0xCD, 0x19, 0xE2, 0xAD, 0x56, 0x4B, 0x86, 0xC2, 0x05, 0x38, 0x32, 0xC3, 0xDE, 0x68,
|
||||||
|
0xB7, 0x8E, 0x8E, 0xDA, 0x46, 0x76, 0xDC, 0x6A, 0xEB, 0xA6, 0xB8, 0x2E, 0x80, 0x36, 0x92, 0x4F,
|
||||||
|
0x38, 0x6B, 0x5C, 0x3F, 0x7E, 0x7C, 0x73,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xF1,
|
||||||
|
0xD0, 0xD5, 0x93, 0xE8, 0xFC, 0x34, 0x0B, 0x5F, 0xE8, 0x53, 0x37, 0x1E, 0xE6, 0xC3, 0xAB, 0xC9,
|
||||||
|
0xCF, 0x10, 0x5C, 0xB2, 0x72, 0x41, 0x98, 0xDC, 0xAD, 0xA3, 0x99, 0x95, 0x57, 0xA0, 0xF6, 0x56,
|
||||||
|
0x53, 0x67, 0x9D, 0x10, 0xC8, 0xFA, 0xAB, 0xC9, 0x0A, 0xAD, 0x0E, 0x48, 0xFD, 0xD5, 0xA4, 0xB9,
|
||||||
|
0x46, 0x06, 0x84, 0x74, 0x35, 0x61, 0xBE, 0x7C, 0x03, 0xE5, 0x40, 0x82, 0x35, 0x22, 0xBE, 0x43,
|
||||||
|
0x47, 0x90, 0xD3, 0x74, 0xA0, 0x81, 0x4A, 0x15, 0xE2, 0x83, 0x0D, 0x2F, 0x7F, 0x7D, 0xFD, 0xAA,
|
||||||
|
0x55, 0xCA, 0x37, 0xD8, 0x52, 0x6C, 0x7C, 0x96, 0x0C, 0x9F, 0x2A, 0xBC, 0x8E, 0x73, 0x28, 0x7F,
|
||||||
|
0x2A, 0x99, 0x67, 0xB5, 0x12, 0x07, 0x94, 0x53, 0x7C, 0x84, 0x18, 0xBC, 0x5B, 0x90, 0x40, 0x07,
|
||||||
|
0x99, 0x80, 0xA6, 0x57, 0x0C, 0x13, 0x3E, 0xDF, 0x4C, 0x18, 0x54, 0x2E, 0x34, 0x00, 0xF8, 0xF1,
|
||||||
|
0xC5, 0x07, 0xBB, 0x03, 0xD5, 0xEA, 0x1A, 0x31, 0x5C, 0xF1, 0xE9, 0x08, 0xC2, 0x40, 0x4A, 0x8E,
|
||||||
|
0x0D, 0xBA, 0xC8, 0x8F, 0xC5, 0x85, 0x7E, 0xF1, 0x82, 0x84, 0xF5, 0xAA, 0x38, 0x3D, 0x04, 0x7B,
|
||||||
|
0x4E, 0xB5, 0xE6, 0xD5, 0x05, 0xB0, 0x9B, 0x9F, 0x41, 0xBA, 0xE1, 0x17, 0xB9, 0x3B, 0x90, 0x04,
|
||||||
|
0xB1, 0xB1, 0x55, 0x9C, 0x65, 0xB9, 0xD0, 0xE3, 0x05, 0x5F, 0x88, 0xE3, 0xB9, 0x9D, 0x45, 0x5A,
|
||||||
|
0xB0, 0x1A, 0x1C, 0x9E, 0xDF, 0xBA, 0x11, 0xDE, 0x4B, 0x90, 0xFB, 0x66, 0x15, 0x68, 0xD9, 0x3D,
|
||||||
|
0x41, 0x36, 0xFF, 0xBD, 0x5F, 0x49, 0x6F, 0x06, 0x45, 0xBD, 0xC0, 0xCC, 0x40, 0x37, 0x82, 0xAC,
|
||||||
|
0x63, 0xAD, 0xA8, 0x28, 0x71, 0xA2, 0x79, 0x74, 0x8F, 0x62, 0x98, 0x6B, 0x3E, 0xBC, 0x97, 0x20,
|
||||||
|
0xFF, 0x4E, 0x05, 0xE8, 0x12, 0x2D, 0xE8, 0x12, 0xE9, 0x46, 0x94, 0xE9, 0x92, 0x95, 0xBD, 0x74,
|
||||||
|
0xF6, 0xD1, 0x3D, 0xC2, 0xD3, 0x82, 0xA7, 0x1B, 0xE3, 0xD5, 0x54, 0x85, 0x57, 0x24, 0x41, 0x81,
|
||||||
|
0xD1, 0x82, 0x02, 0x23, 0xDD, 0x18, 0x65, 0x0A, 0x64, 0x25, 0x33, 0x55, 0x60, 0xB2, 0x26, 0xFD,
|
||||||
|
0xE4, 0x0D, 0x15, 0xE8, 0xF0, 0x65, 0x0D, 0xE1, 0xAC, 0xF8, 0xEA, 0xC6, 0xE5, 0x3D, 0xB4, 0xE9,
|
||||||
|
0x1E, 0x4F, 0xD0, 0xF5, 0x72, 0x41, 0xD7, 0x4B, 0xDD, 0x78, 0x72, 0x7E, 0x29, 0x1B, 0x09, 0x14,
|
||||||
|
0x6F, 0xA2, 0x4D, 0x78, 0x45, 0x33, 0x88, 0xF6, 0x85, 0x7F, 0x42, 0xF0, 0x4E, 0xE6, 0x58, 0x92,
|
||||||
|
0xBA, 0x9A, 0x31, 0x5D, 0x68, 0xC8, 0xC3, 0x01, 0xD3, 0x4A, 0xEF, 0x3C, 0x0C, 0xAB, 0x8C, 0xE4,
|
||||||
|
0xAD, 0x4B, 0xA5, 0xFD, 0xF3, 0x73, 0x85, 0x06, 0x8A, 0xF8, 0x0F, 0x03, 0x4A, 0x90, 0xED, 0x50,
|
||||||
|
0x55, 0xE4, 0x26, 0x72, 0x05, 0xF3, 0x7F, 0xCB, 0x01, 0x21, 0xA5, 0xB0, 0x1E, 0x09, 0x15, 0x17,
|
||||||
|
0xF3, 0xFD, 0x1B, 0xF8, 0x88, 0x63, 0x4F, 0x89, 0xA3, 0x24, 0x5A, 0xE8, 0x26, 0x3F, 0xD2, 0x3A,
|
||||||
|
0xDA, 0x44, 0x37, 0x8E, 0x26, 0xA9, 0x47, 0x41, 0x4B, 0xDE, 0x5B, 0x32, 0x15, 0x41, 0xC7, 0x2F,
|
||||||
|
0x07, 0xD1, 0xF1, 0x4B, 0x41, 0xC7, 0x2F, 0x00, 0xD8, 0x2C, 0x03, 0x7A, 0x52, 0x43, 0x30, 0xA3,
|
||||||
|
0xAA, 0x27, 0xBD, 0x10, 0x5A, 0x57, 0x33, 0xBF, 0xCC, 0x4C, 0x16, 0x95, 0xF2, 0x48, 0x6E, 0xD7,
|
||||||
|
0x3E, 0x3F, 0x16, 0xFF, 0x6A, 0xEE, 0xFF, 0x81, 0x09, 0x07, 0x8B, 0x81, 0x4E, 0x00, 0x00
|
||||||
|
};
|
||||||
21
Docker_NodeRed-etc_Cookbook/AutoHaus.txt
Normal file
21
Docker_NodeRed-etc_Cookbook/AutoHaus.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
::otterstein.festeStichworte zur alten Haussteuerung Ottersteiner Str. 129
|
||||||
|
c-control station 2 siehe http://www.cc2net.de/Die_C-Control_II/Die_Station_II/die_station_ii.html
|
||||||
|
Xport auf Otterstein do> sudo socat PTY,link=/dev/XPort TCP:192.168.2.201:10001 &
|
||||||
|
Rechte für die Schnittstelle sudo chown pi:tty /dev/pts/1 und /dev/XPort sudo chmod 777 /dev/XPort
|
||||||
|
WigaTop/status
|
||||||
|
WigaTop/temp
|
||||||
|
WigaTop/humidity
|
||||||
|
WigaTop/relais/r1 bis r5 [on:off]
|
||||||
|
|
||||||
|
$ sudo docker run -i -t -e TZ=Europe/London centos /bin/bash
|
||||||
|
[root@3a778f0 /]# date
|
||||||
|
Fri Nov 27 17:10:18 GMT 2015
|
||||||
|
|
||||||
|
/etc/samba/smb.conf
|
||||||
|
|
||||||
|
Openhab2
|
||||||
|
/etc/openhab2
|
||||||
|
sudo systemctl restart|stop|start openhab2
|
||||||
|
startskript z.b jfs_start in /etc/rc.local
|
||||||
|
|
||||||
|
|
||||||
BIN
Docker_NodeRed-etc_Cookbook/ESP32 WemosLoilin oled.odt
Normal file
BIN
Docker_NodeRed-etc_Cookbook/ESP32 WemosLoilin oled.odt
Normal file
Binary file not shown.
1
Docker_NodeRed-etc_Cookbook/Home.json
Normal file
1
Docker_NodeRed-etc_Cookbook/Home.json
Normal file
File diff suppressed because one or more lines are too long
616
Docker_NodeRed-etc_Cookbook/Thermoskanne.json
Normal file
616
Docker_NodeRed-etc_Cookbook/Thermoskanne.json
Normal file
@ -0,0 +1,616 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "fdbc851f.61bec8",
|
||||||
|
"type": "tab",
|
||||||
|
"label": "Labor",
|
||||||
|
"disabled": false,
|
||||||
|
"info": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "25c50883.bea6f8",
|
||||||
|
"type": "mqtt out",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "cmd/drehz",
|
||||||
|
"topic": "/maschine/cmd/drehz",
|
||||||
|
"qos": "1",
|
||||||
|
"retain": "true",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 614,
|
||||||
|
"y": 294,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ce7402d4.57716",
|
||||||
|
"type": "mqtt in",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"topic": "/maschine/temp",
|
||||||
|
"qos": "2",
|
||||||
|
"datatype": "auto",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 340.9999694824219,
|
||||||
|
"y": 229.4000244140625,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"67f45a60.ff2794",
|
||||||
|
"99a1cf04.93fa08"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "fea1942a.233588",
|
||||||
|
"type": "ui_gauge",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 0,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"gtype": "gage",
|
||||||
|
"title": "Temperatur",
|
||||||
|
"label": "C",
|
||||||
|
"format": "{{value}}",
|
||||||
|
"min": 0,
|
||||||
|
"max": "40",
|
||||||
|
"colors": [
|
||||||
|
"#00b500",
|
||||||
|
"#e6e600",
|
||||||
|
"#ca3838"
|
||||||
|
],
|
||||||
|
"seg1": "",
|
||||||
|
"seg2": "",
|
||||||
|
"x": 701,
|
||||||
|
"y": 228.39996337890625,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "db1c0fd7.b7e6e",
|
||||||
|
"type": "ui_slider",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"label": "Motor",
|
||||||
|
"tooltip": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 1,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"passthru": true,
|
||||||
|
"outs": "end",
|
||||||
|
"topic": "",
|
||||||
|
"min": 0,
|
||||||
|
"max": "100",
|
||||||
|
"step": 1,
|
||||||
|
"x": 319.99998474121094,
|
||||||
|
"y": 297.20001220703125,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"25c50883.bea6f8"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "91aae768.9d3208",
|
||||||
|
"type": "ui_switch",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"label": "Motor On/Off",
|
||||||
|
"tooltip": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 2,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"passthru": true,
|
||||||
|
"decouple": "false",
|
||||||
|
"topic": "",
|
||||||
|
"style": "",
|
||||||
|
"onvalue": "1",
|
||||||
|
"onvalueType": "str",
|
||||||
|
"onicon": "",
|
||||||
|
"oncolor": "",
|
||||||
|
"offvalue": "0",
|
||||||
|
"offvalueType": "str",
|
||||||
|
"officon": "",
|
||||||
|
"offcolor": "",
|
||||||
|
"x": 338.99998474121094,
|
||||||
|
"y": 360.5999755859375,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"4aefce01.6717b"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "4aefce01.6717b",
|
||||||
|
"type": "mqtt out",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "cmd/motor",
|
||||||
|
"topic": "/maschine/cmd/motor",
|
||||||
|
"qos": "1",
|
||||||
|
"retain": "true",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 615.2999877929688,
|
||||||
|
"y": 361.199951171875,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "996a6684.c4da48",
|
||||||
|
"type": "ui_switch",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"label": "Relais",
|
||||||
|
"tooltip": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 2,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"passthru": true,
|
||||||
|
"decouple": "false",
|
||||||
|
"topic": "",
|
||||||
|
"style": "",
|
||||||
|
"onvalue": "1",
|
||||||
|
"onvalueType": "str",
|
||||||
|
"onicon": "",
|
||||||
|
"oncolor": "",
|
||||||
|
"offvalue": "0",
|
||||||
|
"offvalueType": "str",
|
||||||
|
"officon": "",
|
||||||
|
"offcolor": "",
|
||||||
|
"x": 329.29998779296875,
|
||||||
|
"y": 472.199951171875,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"cf4a3439.d0a078"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cf4a3439.d0a078",
|
||||||
|
"type": "mqtt out",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "cmd/relais",
|
||||||
|
"topic": "/maschine/cmd/relais",
|
||||||
|
"qos": "1",
|
||||||
|
"retain": "true",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 619.5999755859375,
|
||||||
|
"y": 470.7999267578125,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "9dda8f98.58118",
|
||||||
|
"type": "ui_switch",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"label": "Power",
|
||||||
|
"tooltip": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 2,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"passthru": true,
|
||||||
|
"decouple": "false",
|
||||||
|
"topic": "",
|
||||||
|
"style": "",
|
||||||
|
"onvalue": "1",
|
||||||
|
"onvalueType": "str",
|
||||||
|
"onicon": "",
|
||||||
|
"oncolor": "",
|
||||||
|
"offvalue": "0",
|
||||||
|
"offvalueType": "str",
|
||||||
|
"officon": "",
|
||||||
|
"offcolor": "",
|
||||||
|
"x": 325.2999725341797,
|
||||||
|
"y": 416.199951171875,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"49f47037.7fd17"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "49f47037.7fd17",
|
||||||
|
"type": "mqtt out",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "cmd/power",
|
||||||
|
"topic": "/maschine/cmd/power",
|
||||||
|
"qos": "1",
|
||||||
|
"retain": "true",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 613.5999755859375,
|
||||||
|
"y": 418.7999267578125,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "fb18265e.724fc8",
|
||||||
|
"type": "mqtt in",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"topic": "/maschine/thermistor",
|
||||||
|
"qos": "2",
|
||||||
|
"datatype": "auto",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 347.2999725341797,
|
||||||
|
"y": 175.20001220703125,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"397ee1e0.18b32e",
|
||||||
|
"4173e801.9e58d"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cd6252ff.4f596",
|
||||||
|
"type": "ui_gauge",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 0,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"gtype": "gage",
|
||||||
|
"title": "Thermistor",
|
||||||
|
"label": "C",
|
||||||
|
"format": "{{value}}",
|
||||||
|
"min": 0,
|
||||||
|
"max": "80",
|
||||||
|
"colors": [
|
||||||
|
"#00b500",
|
||||||
|
"#e6e600",
|
||||||
|
"#ca3838"
|
||||||
|
],
|
||||||
|
"seg1": "",
|
||||||
|
"seg2": "",
|
||||||
|
"x": 692.300048828125,
|
||||||
|
"y": 175.199951171875,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "a9f0758e.e12b28",
|
||||||
|
"type": "mqtt out",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "cmd/targetTemp",
|
||||||
|
"topic": "/maschine/cmd/targettemp",
|
||||||
|
"qos": "1",
|
||||||
|
"retain": "true",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 721,
|
||||||
|
"y": 526,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "15958621.d146ca",
|
||||||
|
"type": "ui_slider",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"label": "Target Temperatur",
|
||||||
|
"tooltip": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 1,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"passthru": true,
|
||||||
|
"outs": "end",
|
||||||
|
"topic": "",
|
||||||
|
"min": 0,
|
||||||
|
"max": "60",
|
||||||
|
"step": 1,
|
||||||
|
"x": 327,
|
||||||
|
"y": 527.2000122070312,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"d4a7294.addabd8"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "6b6aff5c.217f5",
|
||||||
|
"type": "ui_text",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 7,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"name": "",
|
||||||
|
"label": "Status",
|
||||||
|
"format": "{{msg.payload}}",
|
||||||
|
"layout": "row-spread",
|
||||||
|
"x": 699,
|
||||||
|
"y": 593,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e0fff770.74eb18",
|
||||||
|
"type": "mqtt in",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"topic": "/maschine/status",
|
||||||
|
"qos": "2",
|
||||||
|
"datatype": "auto",
|
||||||
|
"broker": "9d12c96a.1bc38",
|
||||||
|
"x": 318,
|
||||||
|
"y": 596,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"6b6aff5c.217f5",
|
||||||
|
"98265187.68291"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "c8821bfe.d72338",
|
||||||
|
"type": "ui_switch",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "Influx On/Off",
|
||||||
|
"label": "Influx",
|
||||||
|
"tooltip": "",
|
||||||
|
"group": "97cd0ecc.fcc628",
|
||||||
|
"order": 8,
|
||||||
|
"width": 0,
|
||||||
|
"height": 0,
|
||||||
|
"passthru": true,
|
||||||
|
"decouple": "false",
|
||||||
|
"topic": "",
|
||||||
|
"style": "",
|
||||||
|
"onvalue": "true",
|
||||||
|
"onvalueType": "bool",
|
||||||
|
"onicon": "",
|
||||||
|
"oncolor": "",
|
||||||
|
"offvalue": "false",
|
||||||
|
"offvalueType": "bool",
|
||||||
|
"officon": "",
|
||||||
|
"offcolor": "",
|
||||||
|
"x": 129,
|
||||||
|
"y": 675,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"bf764fc5.91c7b"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bf764fc5.91c7b",
|
||||||
|
"type": "function",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"func": "flow.set('Thermos2Influx',msg.payload);\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"noerr": 0,
|
||||||
|
"x": 298,
|
||||||
|
"y": 673,
|
||||||
|
"wires": [
|
||||||
|
[]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "9b1f8be2.1750a8",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"active": false,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": false,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "false",
|
||||||
|
"x": 911,
|
||||||
|
"y": 642,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "8273a293.2d64d",
|
||||||
|
"type": "inject",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"topic": "",
|
||||||
|
"payload": "write",
|
||||||
|
"payloadType": "str",
|
||||||
|
"repeat": "5",
|
||||||
|
"crontab": "",
|
||||||
|
"once": true,
|
||||||
|
"onceDelay": "5",
|
||||||
|
"x": 121,
|
||||||
|
"y": 733,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"5470a350.89716c"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "5470a350.89716c",
|
||||||
|
"type": "function",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"func": "ok = flow.get('Thermos2Influx');\nif (ok===true){\n return msg;\n}\n",
|
||||||
|
"outputs": 1,
|
||||||
|
"noerr": 0,
|
||||||
|
"x": 302,
|
||||||
|
"y": 732,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"1e3a3557.6f2bfb"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "397ee1e0.18b32e",
|
||||||
|
"type": "function",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "for influx",
|
||||||
|
"func": "flow.set('thermistor',msg.payload);\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"noerr": 0,
|
||||||
|
"x": 533,
|
||||||
|
"y": 175,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"cd6252ff.4f596"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "67f45a60.ff2794",
|
||||||
|
"type": "function",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "for influx",
|
||||||
|
"func": "flow.set('objecttemp',msg.payload);\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"noerr": 0,
|
||||||
|
"x": 528,
|
||||||
|
"y": 231,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"fea1942a.233588"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "d4a7294.addabd8",
|
||||||
|
"type": "function",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "for influx",
|
||||||
|
"func": "flow.set('targetTemp',msg.payload);\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"noerr": 0,
|
||||||
|
"x": 526,
|
||||||
|
"y": 528,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"a9f0758e.e12b28"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "c7bd3a5b.640ff8",
|
||||||
|
"type": "influxdb batch",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"influxdb": "7b621d7a.75643c",
|
||||||
|
"precision": "",
|
||||||
|
"retentionPolicy": "",
|
||||||
|
"name": "",
|
||||||
|
"x": 905.2000122070312,
|
||||||
|
"y": 728,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1e3a3557.6f2bfb",
|
||||||
|
"type": "function",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "thermoskanne",
|
||||||
|
"func": "msg.payload = [\n {\n measurement: \"thermoskanne\",\n fields: {\n thermistor: flow.get('thermistor'),\n objecttemp : flow.get('objecttemp'),\n targettemp : flow.get('targetTemp'),\n },\n tags:{\n location:\"labor\",\n },\n timestamp: new Date()\n }\n];\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"noerr": 0,
|
||||||
|
"x": 542,
|
||||||
|
"y": 750.800048828125,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"c7bd3a5b.640ff8",
|
||||||
|
"9b1f8be2.1750a8"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "4173e801.9e58d",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"active": false,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": false,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "false",
|
||||||
|
"x": 964,
|
||||||
|
"y": 82,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "98265187.68291",
|
||||||
|
"type": "timeout",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "My Timeout",
|
||||||
|
"outtopic": "",
|
||||||
|
"outsafe": "",
|
||||||
|
"outwarning": "Warning",
|
||||||
|
"outunsafe": "Connection Lost",
|
||||||
|
"warning": "15",
|
||||||
|
"timer": "30",
|
||||||
|
"repeat": false,
|
||||||
|
"again": false,
|
||||||
|
"x": 508,
|
||||||
|
"y": 639,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"6b6aff5c.217f5"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "99a1cf04.93fa08",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "fdbc851f.61bec8",
|
||||||
|
"name": "",
|
||||||
|
"active": false,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": false,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "false",
|
||||||
|
"x": 959,
|
||||||
|
"y": 269,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "9d12c96a.1bc38",
|
||||||
|
"type": "mqtt-broker",
|
||||||
|
"z": "",
|
||||||
|
"name": "otterstein",
|
||||||
|
"broker": "192.168.2.71",
|
||||||
|
"port": "1883",
|
||||||
|
"clientid": "",
|
||||||
|
"usetls": false,
|
||||||
|
"compatmode": true,
|
||||||
|
"keepalive": "60",
|
||||||
|
"cleansession": true,
|
||||||
|
"birthTopic": "",
|
||||||
|
"birthQos": "1",
|
||||||
|
"birthRetain": "true",
|
||||||
|
"birthPayload": "",
|
||||||
|
"closeTopic": "",
|
||||||
|
"closeQos": "1",
|
||||||
|
"closeRetain": "true",
|
||||||
|
"closePayload": "",
|
||||||
|
"willTopic": "",
|
||||||
|
"willQos": "1",
|
||||||
|
"willRetain": "true",
|
||||||
|
"willPayload": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "97cd0ecc.fcc628",
|
||||||
|
"type": "ui_group",
|
||||||
|
"z": "",
|
||||||
|
"name": "Thermoskanne",
|
||||||
|
"tab": "17759da.4668d62",
|
||||||
|
"disp": true,
|
||||||
|
"width": "6",
|
||||||
|
"collapse": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "7b621d7a.75643c",
|
||||||
|
"type": "influxdb",
|
||||||
|
"z": "",
|
||||||
|
"hostname": "192.168.2.72",
|
||||||
|
"port": "8086",
|
||||||
|
"protocol": "http",
|
||||||
|
"database": "otterstein",
|
||||||
|
"name": "",
|
||||||
|
"usetls": false,
|
||||||
|
"tls": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "17759da.4668d62",
|
||||||
|
"type": "ui_tab",
|
||||||
|
"z": "",
|
||||||
|
"name": "Labor",
|
||||||
|
"icon": "dashboard",
|
||||||
|
"disabled": false,
|
||||||
|
"hidden": false
|
||||||
|
}
|
||||||
|
]
|
||||||
44
Docker_NodeRed-etc_Cookbook/docker.txt
Normal file
44
Docker_NodeRed-etc_Cookbook/docker.txt
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
Docker
|
||||||
|
docker info
|
||||||
|
docker run hello-world
|
||||||
|
docker ps
|
||||||
|
docker search mysql
|
||||||
|
docker exec -it my-mysql bash # inside the container
|
||||||
|
mysql -u root -p # zur mysql command line
|
||||||
|
show databases
|
||||||
|
exit
|
||||||
|
Strg-P STRG-Q
|
||||||
|
|
||||||
|
--- installiert wordpress siehe ipadress:8080
|
||||||
|
docker run --name my-mysql -e MYSQL_ROOT_PASSWORD=jens123 -d mysql
|
||||||
|
docker run --name my-wordpress --link my-mysql:mysql -p 8080:80 -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=jens123 -d wordpress
|
||||||
|
|
||||||
|
aus der ct
|
||||||
|
Docker
|
||||||
|
docker ps -a zeigt alle existierenden Container
|
||||||
|
docker image ls zeigt alle images
|
||||||
|
docker image save > /tmp/hello.tar
|
||||||
|
docker logs -f <container>
|
||||||
|
|
||||||
|
One liner to stop / remove all of Docker containers:
|
||||||
|
docker stop $(docker ps -a -q)
|
||||||
|
docker rm $(docker ps -a -q)
|
||||||
|
|
||||||
|
Remove all containers that aren't currently running:
|
||||||
|
docker rmi -f $(docker images -q)
|
||||||
|
|
||||||
|
fhem core/contrib/dblog/db.conf db auf 192.168.2.71 setzen
|
||||||
|
|
||||||
|
Rancher
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.address 192.168.2.75/24
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.gateway 192.168.2.1
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.mtu 1500
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.dhcp false
|
||||||
|
$ sudo ros config set rancher.network.dns.nameservers "['8.8.8.8','4.2.2.2']"
|
||||||
|
test $ sudo ros config get rancher.network.dns.nameservers
|
||||||
|
|
||||||
|
Owncloud
|
||||||
|
chsh -s /bin/sh www
|
||||||
|
su www
|
||||||
|
cd /usr/pbi/owncloud-amd64/www/owncloud
|
||||||
|
/usr/pbi/owncloud-amd64/bin/php ./occ files:scan
|
||||||
1
Docker_NodeRed-etc_Cookbook/env.grafana
Normal file
1
Docker_NodeRed-etc_Cookbook/env.grafana
Normal file
@ -0,0 +1 @@
|
|||||||
|
GF_INSTALL_PLUGINS=grafana-clock-panel,briangann-gauge-panel,natel-plotly-panel,grafana-simple-json-datasource
|
||||||
2
Docker_NodeRed-etc_Cookbook/env.influxdb
Normal file
2
Docker_NodeRed-etc_Cookbook/env.influxdb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INFLUXDB_DATA_ENGINE=tsm1
|
||||||
|
INFLUXDB_REPORTING_DISABLED=false
|
||||||
1
Docker_NodeRed-etc_Cookbook/flows.json.txt
Normal file
1
Docker_NodeRed-etc_Cookbook/flows.json.txt
Normal file
File diff suppressed because one or more lines are too long
43
Docker_NodeRed-etc_Cookbook/freenas_docker_installation.txt
Normal file
43
Docker_NodeRed-etc_Cookbook/freenas_docker_installation.txt
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
Docker installation auf freenas 11.2
|
||||||
|
|
||||||
|
$ sudo ros console enable debian
|
||||||
|
$ reboot
|
||||||
|
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.address 192.168.2.71/24
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.gateway 192.168.2.1
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.mtu 1500
|
||||||
|
$ sudo ros config set rancher.network.interfaces.eth0.dhcp false
|
||||||
|
$ sudo ros config set rancher.network.dns.nameservers "['8.8.8.8','4.2.2.2']"
|
||||||
|
test $ sudo ros config get rancher.network
|
||||||
|
$ sudo reboot
|
||||||
|
|
||||||
|
einloggen über ssh
|
||||||
|
docker volume create portainer_data
|
||||||
|
docker run --restart always -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
|
||||||
|
docker run --restart always -d --name mqtt2 -p 1883:1883 -p 9001:9001 toke/mosquitto
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get upgrade
|
||||||
|
sudo apt-get install python-pip
|
||||||
|
sudo pip install docker-compose
|
||||||
|
|
||||||
|
owncloud erstellt
|
||||||
|
.env Domain auf 192.168.2.71
|
||||||
|
cd owncloud
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
#### für smb1 verbindungen von owncloud aus in services/SMB unter Auxiliary Parameters
|
||||||
|
log level = 0 (kann man beo Problemen ändern)
|
||||||
|
server min protocol = NT1
|
||||||
|
|
||||||
|
docker run --restart always --name=jfsmysql -p 3308:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes --volume=/home/rancher/mysql:/var/lib/mysql mysql:5.7
|
||||||
|
|
||||||
|
#### besser kein gitlab braucht zuviel resourcen
|
||||||
|
sudo docker run --detach \
|
||||||
|
--hostname gitlab.example.com \
|
||||||
|
--publish 3443:443 --publish 3000:80 --publish 3022:22 \
|
||||||
|
--name gitlab \
|
||||||
|
--restart always \
|
||||||
|
--volume /srv/gitlab/config:/etc/gitlab \
|
||||||
|
--volume /srv/gitlab/logs:/var/log/gitlab \
|
||||||
|
--volume /srv/gitlab/data:/var/opt/gitlab \
|
||||||
|
gitlab/gitlab-ce:latest
|
||||||
68
Docker_NodeRed-etc_Cookbook/freenas_linux.txt
Normal file
68
Docker_NodeRed-etc_Cookbook/freenas_linux.txt
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
Bucket
|
||||||
|
CVS Versionsmanagement
|
||||||
|
liegt auf freenas im jail xdm_1 IP 192.168.2.176
|
||||||
|
zugriff extssh jens|2Drittel% /cvs
|
||||||
|
FAMP
|
||||||
|
pkg install apache24
|
||||||
|
sysrc apach24_enable=yes
|
||||||
|
pkg install mysql56-serverpkg
|
||||||
|
sysrc mysql_enable=yes
|
||||||
|
service apache24 onestart
|
||||||
|
service mysql-server start
|
||||||
|
pkg install php56 mod_php56 php56-mysql php56-mysqlipkg
|
||||||
|
pkg install phpMyAdmin
|
||||||
|
cd /usr/local/etc/apache24
|
||||||
|
httpd.conf -->
|
||||||
|
...
|
||||||
|
Directoryindex index.php index.html
|
||||||
|
...
|
||||||
|
<FilesMatch "\.php$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch "\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch "\.php$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch "\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
Alias /phpmyadmin "/usr/local/www/phpMyAdmin"
|
||||||
|
|
||||||
|
<Directory "/usr/local/www/phpMyAdmin">
|
||||||
|
Options None
|
||||||
|
AllowOverride None
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
...pkg insta
|
||||||
|
mysql_secure_installation
|
||||||
|
|
||||||
|
wget http://pear.php.net/go-pear.phar als root@jail !!
|
||||||
|
php go-pear.phar
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Configfiles
|
||||||
|
.cshrc für die user-shell cshnan
|
||||||
|
/etc/ssh/ssh_config ssh configuration
|
||||||
|
/etc/rc.conf ssh anschalten
|
||||||
|
|
||||||
|
Befehle
|
||||||
|
chown -R benutzer:gruppe verzeichnis
|
||||||
|
service sshd restart
|
||||||
|
finger zeigt infos über Benutzer
|
||||||
|
history liste der letzten Befehle
|
||||||
|
who
|
||||||
|
pwd aktuelle dir
|
||||||
|
find . -name wasichsuche . sucht unter dem aktuellen Verzeichnis
|
||||||
|
find . -name "SUCH-KRITERIUM" -exec rm -rf {} \; sucht und löscht ohne Rückfrage auch Ordner
|
||||||
|
Jails
|
||||||
|
jls Jail no finden
|
||||||
|
jexec no /bin/tcsh
|
||||||
|
exit wieder abmelden
|
||||||
|
|
||||||
|
rmlint -> Guide im Web Duplikate finden
|
||||||
|
|
||||||
|
|
||||||
1
Docker_NodeRed-etc_Cookbook/handy..json
Normal file
1
Docker_NodeRed-etc_Cookbook/handy..json
Normal file
File diff suppressed because one or more lines are too long
34
Docker_NodeRed-etc_Cookbook/howToUse.txt
Normal file
34
Docker_NodeRed-etc_Cookbook/howToUse.txt
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Status 30.4.2019
|
||||||
|
Freenas Rancher
|
||||||
|
apt-get install socat
|
||||||
|
sudo socat PTY,link=/dev/XPort TCP:192.168.2.201:10001 &
|
||||||
|
sudo chmod 777 /dev/XPort
|
||||||
|
docker run -d -p 1880:1880 -v /dev/XPort:/dev/XPort -v node-red-data:/data --name mynodered nodered/node-red-docker
|
||||||
|
Raspberry USB-Server
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install usbip
|
||||||
|
sudo modprobe usbip-host
|
||||||
|
sudo usbipd -d
|
||||||
|
sudo usbip list -l ##-> ergibt den Port
|
||||||
|
sudo usbip bind -b 1-1.3 ##(Port) Anmelden des usb Gerätes
|
||||||
|
wenn soweit ok dann in in //etc/rc.local“ oberhalb von „exit 0“ einfügen
|
||||||
|
sudo modprobe usbip-host
|
||||||
|
sudo usbipd -D
|
||||||
|
sudo usbip unbind -b 1-1.3 ## trennt das gerät von der ip und macht es lokal verfügbar
|
||||||
|
Ubuntu USB-Client
|
||||||
|
sudo apt-get install linux-tools-generic ## (server)
|
||||||
|
|
||||||
|
sudo modprobe vhci-hcd ##(client)
|
||||||
|
sudo modprobe ch341
|
||||||
|
|
||||||
|
sudo /usr/lib/linux-tools/$(uname -r)/usbip list -r <Server IP address>
|
||||||
|
sudo /usr/lib/linux-tools/$(uname -r)/usbip attach -r 192.168.2.156 -b 1-1.4
|
||||||
|
port
|
||||||
|
detach -p 00
|
||||||
|
|
||||||
|
diverses
|
||||||
|
lsusb
|
||||||
|
dmesg | grep tty
|
||||||
|
suso chmod 777 /dev/ttyUSB0
|
||||||
|
|
||||||
|
sudo docker run --privileged -d -p 1880:1880 -v /dev/ttyUSB0:/dev/ttyUSB0 -v node-red-data:/data --name labnode nodered/node-red
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
influxdb:
|
||||||
|
image: influxdb:latest
|
||||||
|
container_name: influxdb
|
||||||
|
ports:
|
||||||
|
- "8083:8083"
|
||||||
|
- "8086:8086"
|
||||||
|
- "8090:8090"
|
||||||
|
env_file:
|
||||||
|
- 'env.influxdb'
|
||||||
|
volumes:
|
||||||
|
# Data persistency
|
||||||
|
# sudo mkdir -p /srv/docker/influxdb/data
|
||||||
|
- /srv/docker/influxdb/data:/var/lib/influxdb
|
||||||
|
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana:latest
|
||||||
|
container_name: grafana
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
env_file:
|
||||||
|
- 'env.grafana'
|
||||||
|
user: "0"
|
||||||
|
links:
|
||||||
|
- influxdb
|
||||||
|
volumes:
|
||||||
|
# Data persistency
|
||||||
|
# sudo mkdir -p /srv/docker/grafana/data; chown 472:472 /srv/docker/grafana/data
|
||||||
|
- /srv/docker/grafana/data:/var/lib/grafana
|
||||||
75
Docker_NodeRed-etc_Cookbook/owncloud/docker-compose.yml
Normal file
75
Docker_NodeRed-etc_Cookbook/owncloud/docker-compose.yml
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
version: '2.1'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
files:
|
||||||
|
driver: local
|
||||||
|
mysql:
|
||||||
|
driver: local
|
||||||
|
backup:
|
||||||
|
driver: local
|
||||||
|
redis:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
services:
|
||||||
|
owncloud:
|
||||||
|
image: owncloud/server:${VERSION}
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- ${HTTPS_PORT}:443
|
||||||
|
- ${HTTP_PORT}:80
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- redis
|
||||||
|
environment:
|
||||||
|
- OWNCLOUD_DOMAIN=${DOMAIN}
|
||||||
|
- OWNCLOUD_DB_TYPE=mysql
|
||||||
|
- OWNCLOUD_DB_NAME=owncloud
|
||||||
|
- OWNCLOUD_DB_USERNAME=owncloud
|
||||||
|
- OWNCLOUD_DB_PASSWORD=owncloud
|
||||||
|
- OWNCLOUD_DB_HOST=db
|
||||||
|
- OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME}
|
||||||
|
- OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
- OWNCLOUD_UTF8MB4_ENABLED=true
|
||||||
|
- OWNCLOUD_REDIS_ENABLED=true
|
||||||
|
- OWNCLOUD_REDIS_HOST=redis
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost/status.php"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
volumes:
|
||||||
|
- files:/mnt/data
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: webhippie/mariadb:latest
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- MARIADB_ROOT_PASSWORD=owncloud
|
||||||
|
- MARIADB_USERNAME=owncloud
|
||||||
|
- MARIADB_PASSWORD=owncloud
|
||||||
|
- MARIADB_DATABASE=owncloud
|
||||||
|
- MARIADB_MAX_ALLOWED_PACKET=128M
|
||||||
|
- MARIADB_INNODB_LOG_FILE_SIZE=64M
|
||||||
|
- MARIADB_INNODB_LARGE_PREFIX=ON
|
||||||
|
- MARIADB_INNODB_FILE_FORMAT=Barracuda
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/usr/bin/healthcheck"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
volumes:
|
||||||
|
- mysql:/var/lib/mysql
|
||||||
|
- backup:/var/lib/backup
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: webhippie/redis:latest
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- REDIS_DATABASES=1
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/usr/bin/healthcheck"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
volumes:
|
||||||
|
- redis:/var/lib/redis
|
||||||
8
Docker_NodeRed-etc_Cookbook/pumpe.sh
Normal file
8
Docker_NodeRed-etc_Cookbook/pumpe.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sudo apt-get install socat
|
||||||
|
sudo killall socat
|
||||||
|
sudo rmdir /dev/XPort
|
||||||
|
sudo socat PTY,link=/dev/XPort TCP:192.168.2.201:10001 &
|
||||||
|
sleep 1
|
||||||
|
sudo chmod 777 /dev/XPort
|
||||||
|
docker restart mynodered
|
||||||
33
Docker_NodeRed-etc_Cookbook/wordpress-docker-compose.yml
Normal file
33
Docker_NodeRed-etc_Cookbook/wordpress-docker-compose.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# docker-compose.yaml
|
||||||
|
|
||||||
|
version: '2' # version of docker-compose to use
|
||||||
|
|
||||||
|
services: # configuring each container
|
||||||
|
db: # name of our mysql container
|
||||||
|
image: mysql:5.7 # which image to pull, in this case specifying v. 5.7
|
||||||
|
volumes: # data to map to the container
|
||||||
|
- ./data:/docker-entrypoint-initdb.d # where to find our data -- we'll talk more about this
|
||||||
|
restart: always # always restart the container after reboot
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
environment: # environment variables -- mysql options in this case
|
||||||
|
MYSQL_ROOT_PASSWORD: wordpress
|
||||||
|
MYSQL_DATABASE: wordpress
|
||||||
|
MYSQL_USER: wordpress
|
||||||
|
MYSQL_PASSWORD: wordpress
|
||||||
|
|
||||||
|
wordpress: # name of our wordpress container
|
||||||
|
depends_on: # container dependencies that need to be running first
|
||||||
|
- db
|
||||||
|
image: wordpress:latest # image used by our container
|
||||||
|
ports:
|
||||||
|
- "8000:80" # setting our ports for networking
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
WORDPRESS_DB_HOST: db:3306 # default mysql port
|
||||||
|
WORDPRESS_DB_PASSWORD: wordpress # matches the password set in the db container
|
||||||
|
volumes: # this is where we tell Docker what to pay attention to
|
||||||
|
- ./wp-content/themes/my-theme:/var/www/html/wp-content/themes/my-theme # mapping our custom theme to the container
|
||||||
|
- ./wp-content/plugins:/var/www/html/wp-content/plugins # map our plugins to the container
|
||||||
|
- ./wp-content/uploads:/var/www/html/wp-content/uploads # map our uploads to the container
|
||||||
|
|
||||||
30
EEprom_test/EEprom_test.ino
Normal file
30
EEprom_test/EEprom_test.ino
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#include <EEPROM.h>
|
||||||
|
|
||||||
|
#include <EEPROM.h>
|
||||||
|
|
||||||
|
struct MyObject{
|
||||||
|
double field1;
|
||||||
|
};
|
||||||
|
|
||||||
|
int a = 0;
|
||||||
|
double x=0;
|
||||||
|
|
||||||
|
MyObject myo;
|
||||||
|
MyObject dyo;
|
||||||
|
|
||||||
|
void setup()
|
||||||
|
{
|
||||||
|
Serial.begin(9600);
|
||||||
|
myo.field1=1.234;
|
||||||
|
EEPROM.put(a,myo);
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop()
|
||||||
|
{
|
||||||
|
EEPROM.get(a,dyo);
|
||||||
|
Serial.println(dyo.field1);
|
||||||
|
delay(1000);
|
||||||
|
x=dyo.field1;
|
||||||
|
myo.field1 = (3*x+5)/2;
|
||||||
|
EEPROM.put(a,myo);
|
||||||
|
}
|
||||||
336
ESP32_ADS1115_mqtt/ESP32_ADS1115_mqtt.ino
Normal file
336
ESP32_ADS1115_mqtt/ESP32_ADS1115_mqtt.ino
Normal file
@ -0,0 +1,336 @@
|
|||||||
|
|
||||||
|
#include <WiFi.h>
|
||||||
|
#include <PubSubClient.h>
|
||||||
|
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"
|
||||||
|
|
||||||
|
// jfs Wemos lolin32
|
||||||
|
// jfs Heltec WiFi kit 32 (weisses Board)
|
||||||
|
#define HELTEC
|
||||||
|
//#define DEBUG
|
||||||
|
#define _NTC
|
||||||
|
#define _ADS1115
|
||||||
|
#define _SHT3x
|
||||||
|
|
||||||
|
// Initialize the OLED display using Wire library
|
||||||
|
#ifdef HELTEC
|
||||||
|
SSD1306 display(0x3c, 4, 15);
|
||||||
|
#else
|
||||||
|
SSD1306 display(0x3c, 5, 4);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _NTC
|
||||||
|
#include "ntc_support.h"
|
||||||
|
#endif
|
||||||
|
#ifdef _SHT3x
|
||||||
|
#include <SHT3x.h>
|
||||||
|
SHT3x Sensor(0x44);
|
||||||
|
#endif
|
||||||
|
#ifdef _ADS1115
|
||||||
|
// 0x48 addr to gnd
|
||||||
|
// 0x49 addr to vdd
|
||||||
|
// 0x4A addr to sda
|
||||||
|
// 0x4B addr to scl
|
||||||
|
#include <Adafruit_ADS1015.h>
|
||||||
|
Adafruit_ADS1115 ads(0x48);
|
||||||
|
float Voltage = 0.0;
|
||||||
|
ads.setGain(ADS1015_REG_CONFIG_PGA_1_024V);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char* mqttServer = "192.168.2.71";
|
||||||
|
const int mqttPort = 1883;
|
||||||
|
const char* clientID = "esp_32_ad_wandler_1";
|
||||||
|
const char* channelName = "/ESP32_LAB1/CMD/#";
|
||||||
|
|
||||||
|
long interval = 1000; // Sende-Intervall in ms
|
||||||
|
|
||||||
|
|
||||||
|
WiFiClient MQTTclient;
|
||||||
|
PubSubClient client(MQTTclient);
|
||||||
|
|
||||||
|
void callback(char* topic, byte* payload, unsigned int length) {
|
||||||
|
//String payload_buff;
|
||||||
|
//for (int i=0;i<length;i++) {
|
||||||
|
//payload_buff = payload_buff+String((char)payload[i]);
|
||||||
|
//}
|
||||||
|
//Serial.println(payload_buff); // Print out messages.
|
||||||
|
String line0;
|
||||||
|
Serial.print("Message arrived [");
|
||||||
|
Serial.print(topic);
|
||||||
|
Serial.print("] ");
|
||||||
|
line0=topic;
|
||||||
|
int x = 0;
|
||||||
|
int y = 0;
|
||||||
|
|
||||||
|
if (line0.endsWith("interval")) {
|
||||||
|
for (int i=0;i<length;i++) {
|
||||||
|
if (i==0) {
|
||||||
|
x = payload[i]-'0';
|
||||||
|
}
|
||||||
|
if (i==1) {
|
||||||
|
y = payload[i]-'0';
|
||||||
|
x = x*10 + y;
|
||||||
|
}
|
||||||
|
if (i==2) {
|
||||||
|
y = payload[i]-'0';
|
||||||
|
x = x*10 + y;
|
||||||
|
}
|
||||||
|
if (i==3){
|
||||||
|
x = 1000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
interval = x * 10;
|
||||||
|
Serial.println(interval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
long lastReconnectAttempt = 0;
|
||||||
|
|
||||||
|
boolean reconnect() {
|
||||||
|
if (client.connect(clientID)) {
|
||||||
|
client.subscribe(channelName); // Subscribe to channel.
|
||||||
|
}
|
||||||
|
return client.connected();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//unsigned long previousMillis = 0; // Letzter Update-Zeitstempel
|
||||||
|
//long interval = 1000; // Sende-Intervall in ms
|
||||||
|
|
||||||
|
//// WIFI
|
||||||
|
const int mxSize=4;
|
||||||
|
String ssids[mxSize] ={"GAST","pipanet","FRITZ!Box Gastzugang","WLAN-DE8245"};
|
||||||
|
String ssidp[mxSize] = {"passatvr6","passatvr6","praxis123","4955065570896956"};
|
||||||
|
boolean conok =false;
|
||||||
|
|
||||||
|
void netfound(int i){
|
||||||
|
display.clear();
|
||||||
|
display.setColor(BLACK);
|
||||||
|
display.fillRect(0, 0, 128, 10);
|
||||||
|
display.setColor(WHITE);
|
||||||
|
display.drawString(0,0,String(i));
|
||||||
|
display.drawString(20,0,"networks found");
|
||||||
|
display.display();
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean init_wifi(){
|
||||||
|
boolean ok = false;
|
||||||
|
WiFi.mode(WIFI_STA);
|
||||||
|
WiFi.disconnect();
|
||||||
|
delay(100);
|
||||||
|
int n = WiFi.scanNetworks();
|
||||||
|
Serial.println("scan done");
|
||||||
|
if (n == 0) {
|
||||||
|
Serial.println("no networks found");
|
||||||
|
netfound(0);
|
||||||
|
} else {
|
||||||
|
Serial.print(n);
|
||||||
|
Serial.println(" networks found");
|
||||||
|
netfound(n);
|
||||||
|
for (int i = 0; i < n; ++i) {
|
||||||
|
for (int p=0;p<mxSize;p++){
|
||||||
|
if (WiFi.SSID(i).equals(ssids[p])){
|
||||||
|
String pp = ssidp[p];
|
||||||
|
String ss = WiFi.SSID(i);
|
||||||
|
WiFi.begin(ss.c_str(), pp.c_str());
|
||||||
|
i=n;
|
||||||
|
ok = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ok;
|
||||||
|
}
|
||||||
|
///// WIFI
|
||||||
|
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
// put your setup code here, to run once:
|
||||||
|
#ifdef HELTEC
|
||||||
|
pinMode(16,OUTPUT); digitalWrite(16, LOW); delay(50); digitalWrite(16, HIGH);
|
||||||
|
#endif
|
||||||
|
#ifdef _NTC
|
||||||
|
ThermistorPin = 34;
|
||||||
|
adcMax = 4095.0; // ADC resolution 12-bit (0-4095)
|
||||||
|
Vs = 3.3; // supply voltage
|
||||||
|
#endif
|
||||||
|
Serial.begin(115200);
|
||||||
|
display.init();
|
||||||
|
display.flipScreenVertically();
|
||||||
|
display.clear();
|
||||||
|
display.drawString(0, 0, "Starting...");
|
||||||
|
display.display();
|
||||||
|
while (!init_wifi()){
|
||||||
|
delay(200);
|
||||||
|
}
|
||||||
|
display.drawString(0, 10, "Connecting to WiFi...");
|
||||||
|
display.display();
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
delay(500);
|
||||||
|
Serial.print(".");
|
||||||
|
}
|
||||||
|
display.drawString(0, 20, "\nWiFi connected, IP address: ");
|
||||||
|
display.drawString(0, 30, WiFi.localIP().toString());
|
||||||
|
client.setServer(mqttServer, mqttPort); // Connect to PubNub.
|
||||||
|
client.setCallback(callback);
|
||||||
|
lastReconnectAttempt = 0;
|
||||||
|
display.display();
|
||||||
|
//display.init();
|
||||||
|
#ifdef DEBUG
|
||||||
|
i2c_scanner();
|
||||||
|
delay(2000);
|
||||||
|
#endif
|
||||||
|
#ifdef _ADS1115
|
||||||
|
ads.begin();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
if (!client.connected()) {
|
||||||
|
long now = millis();
|
||||||
|
if (now - lastReconnectAttempt > 5000) { // Try to reconnect.
|
||||||
|
lastReconnectAttempt = now;
|
||||||
|
if (reconnect()) { // Attempt to reconnect.
|
||||||
|
lastReconnectAttempt = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else { // Connected.
|
||||||
|
client.loop();
|
||||||
|
publishit(); // Publish message.
|
||||||
|
delay(interval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void publishit() {
|
||||||
|
char buffer[10];
|
||||||
|
display.clear();
|
||||||
|
display.drawString(0,0," ip: "+WiFi.localIP().toString());
|
||||||
|
#ifdef _NTC
|
||||||
|
double Vout, Rt = 0;
|
||||||
|
double T, Tc, Tf = 0;
|
||||||
|
double adc = 0;
|
||||||
|
adc = analogRead(ThermistorPin);
|
||||||
|
adc = ADC_LUT[(int)adc];
|
||||||
|
Vout = adc * Vs/adcMax;
|
||||||
|
Rt = R1 * Vout / (Vs - Vout);
|
||||||
|
T = 1/(1/To + log(Rt/Ro)/Beta); // Temperature in Kelvin
|
||||||
|
Tc = T - 273.15; // Celsius
|
||||||
|
Tf = Tc * 9 / 5 + 32; // Fahrenheit
|
||||||
|
#ifdef DEBUG
|
||||||
|
Serial.println(Tc);
|
||||||
|
#endif
|
||||||
|
dtostrf(Tc, 6, 2, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/NTC",buffer); // Publish message.
|
||||||
|
display.drawString(0,10," NTC "+String(Tc));
|
||||||
|
#endif
|
||||||
|
#ifdef _ADS1115
|
||||||
|
int16_t adc0;
|
||||||
|
int16_t adc1;
|
||||||
|
int16_t adc2;
|
||||||
|
int16_t adc3;
|
||||||
|
adc0 = ads.readADC_SingleEnded(0);
|
||||||
|
Voltage = (adc0 * 0.1875)/1000;
|
||||||
|
dtostrf(Voltage, 3, 5, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/V0",buffer); // Publish message.
|
||||||
|
display.drawString(0,20," "+String(Voltage));
|
||||||
|
#ifdef DEBUG
|
||||||
|
Serial.print("AIN0: ");
|
||||||
|
Serial.print(adc0);
|
||||||
|
Serial.print("\tVoltage: ");
|
||||||
|
Serial.println(Voltage, 7);
|
||||||
|
#endif
|
||||||
|
adc1 = ads.readADC_SingleEnded(1);
|
||||||
|
Voltage = (adc1 * 0.1875)/1000;
|
||||||
|
dtostrf(Voltage, 3, 5, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/V1",buffer); // Publish message.
|
||||||
|
display.drawString(30,20," "+String(Voltage));
|
||||||
|
#ifdef DEBUG
|
||||||
|
Serial.print("AIN1: ");
|
||||||
|
Serial.print(adc1);
|
||||||
|
Serial.print("\tVoltage: ");
|
||||||
|
Serial.println(Voltage, 7);
|
||||||
|
#endif
|
||||||
|
adc2 = ads.readADC_SingleEnded(2);
|
||||||
|
Voltage = (adc2 * 0.1875)/1000;
|
||||||
|
dtostrf(Voltage, 3, 5, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/V2",buffer); // Publish message.
|
||||||
|
display.drawString(60,20," "+String(Voltage));
|
||||||
|
#ifdef DEBUG
|
||||||
|
Serial.print("AIN2: ");
|
||||||
|
Serial.print(adc2);
|
||||||
|
Serial.print("\tVoltage: ");
|
||||||
|
Serial.println(Voltage, 7);
|
||||||
|
#endif
|
||||||
|
adc3 = ads.readADC_SingleEnded(3);
|
||||||
|
Voltage = (adc3 * 0.1875)/1000;
|
||||||
|
dtostrf(Voltage, 3, 5, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/V3",buffer); // Publish message.
|
||||||
|
display.drawString(90,20," "+String(Voltage));
|
||||||
|
#ifdef DEBUG
|
||||||
|
Serial.print("AIN3: ");
|
||||||
|
Serial.print(adc3);
|
||||||
|
Serial.print("\tVoltage: ");
|
||||||
|
Serial.println(Voltage, 7);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#ifdef _SHT3x
|
||||||
|
double adx;
|
||||||
|
Sensor.UpdateData();
|
||||||
|
#ifdef DEBUG
|
||||||
|
Serial.print(Sensor.GetTemperature()); //Celsius
|
||||||
|
Serial.write("\xC2\xB0"); //The Degree symbol
|
||||||
|
Serial.print("C");
|
||||||
|
Serial.print(" | ");
|
||||||
|
Serial.print(Sensor.GetRelHumidity());
|
||||||
|
Serial.print("%");
|
||||||
|
Serial.print(" | ");
|
||||||
|
Serial.print(Sensor.GetAbsHumidity(SHT3x::Pa)); //Torr by default
|
||||||
|
Serial.println(" Pa");
|
||||||
|
#endif
|
||||||
|
adx = Sensor.GetTemperature();
|
||||||
|
dtostrf(adx, 6,2, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/T1",buffer); // Publish message.
|
||||||
|
display.drawString(0,30," "+String(adx)+"C");
|
||||||
|
adx = Sensor.GetRelHumidity();
|
||||||
|
dtostrf(adx, 6,2, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/H1",buffer); // Publish message.
|
||||||
|
display.drawString(40,30," "+String(adx)+"%");
|
||||||
|
adx = Sensor.GetAbsHumidity(SHT3x::psi);
|
||||||
|
dtostrf(adx, 6,2, buffer);
|
||||||
|
client.publish("/ESP32_LAB1/P1",buffer); // Publish message.
|
||||||
|
display.drawString(80,30," "+String(adx)+"psi");
|
||||||
|
#endif
|
||||||
|
display.drawString(0,40," Interval "+String(interval));
|
||||||
|
display.display();
|
||||||
|
}
|
||||||
|
|
||||||
|
void i2c_scanner(){
|
||||||
|
byte error, address;
|
||||||
|
int nDevices;
|
||||||
|
for(address = 1; address < 127; address++ ) {
|
||||||
|
Wire.beginTransmission(address);
|
||||||
|
error = Wire.endTransmission();
|
||||||
|
if (error == 0) {
|
||||||
|
nDevices++;
|
||||||
|
Serial.print("Device found @ 0x");
|
||||||
|
if (address<16) Serial.print("0");
|
||||||
|
Serial.print(address,HEX);
|
||||||
|
Serial.println(" !");
|
||||||
|
}
|
||||||
|
else if (error==4)
|
||||||
|
{
|
||||||
|
Serial.print("Unknow error @ 0x");
|
||||||
|
if (address<16) Serial.print("0");
|
||||||
|
Serial.println(address,HEX);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (nDevices == 0) {
|
||||||
|
Serial.println("No I2C devices found\n");
|
||||||
|
#if OLED_DISPLAY
|
||||||
|
display.drawString(0, 23 , "No I2C devices found");
|
||||||
|
display.display();
|
||||||
|
#endif
|
||||||
|
} else {
|
||||||
|
Serial.println("done\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
301
ESP32_ADS1115_mqtt/ntc_support.h
Normal file
301
ESP32_ADS1115_mqtt/ntc_support.h
Normal file
@ -0,0 +1,301 @@
|
|||||||
|
// NTC B3950 Thermistor
|
||||||
|
// the formula for temp in kelvin is
|
||||||
|
// 1
|
||||||
|
// T = ----------------------------
|
||||||
|
// 1/To + (1/beta) * ln(Rt/Ro)
|
||||||
|
//
|
||||||
|
// https://en.wikipedia.org/wiki/Thermistor
|
||||||
|
|
||||||
|
// ESP32 ADC non-liear issue
|
||||||
|
// https://www.esp32.com/viewtopic.php?t=1045
|
||||||
|
// https://github.com/espressif/esp-idf/issues/164
|
||||||
|
// https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/adc.html#adc-calibration
|
||||||
|
|
||||||
|
bool esp32 = true; // change to false when using Arduino
|
||||||
|
|
||||||
|
int ThermistorPin;
|
||||||
|
double adcMax, Vs;
|
||||||
|
|
||||||
|
double R1 = 10000.0; // voltage divider resistor value
|
||||||
|
double Beta = 3950.0; // Beta value
|
||||||
|
double To = 298.15; // Temperature in Kelvin for 25 degree Celsius
|
||||||
|
double Ro = 10000.0; // Resistance of Thermistor at 25 degree Celsius
|
||||||
|
|
||||||
|
// The ESP32 lookup table varies from device to device, use the program from
|
||||||
|
// https://github.com/e-tinkers/esp32-adc-calibrate
|
||||||
|
// to generate lookup table for your own ESP32
|
||||||
|
const float ADC_LUT[4096] PROGMEM = { 0,
|
||||||
|
7.4000,17.0000,18.8000,20.8000,22.8000,24.8000,26.6000,28.6000,30.4000,32.2000,33.6000,34.8000,36.0000,37.2000,38.6000,
|
||||||
|
39.8000,41.0000,42.2000,43.8000,44.8000,46.0000,47.2000,48.6000,49.6000,50.6000,51.6000,52.4000,53.4000,54.4000,55.4000,
|
||||||
|
56.4000,57.2000,58.2000,59.2000,60.2000,61.2000,62.2000,63.0000,64.0000,65.2000,66.6000,67.8000,68.8000,69.8000,71.0000,
|
||||||
|
72.0000,73.0000,74.2000,75.4000,76.6000,77.8000,78.8000,80.0000,81.0000,82.4000,83.8000,85.0000,86.2000,87.6000,88.8000,
|
||||||
|
90.0000,91.4000,92.8000,94.0000,95.0000,96.4000,97.2000,98.0000,99.0000,99.8000,100.8000,101.8000,102.6000,103.4000,104.0000,
|
||||||
|
105.0000,106.0000,106.8000,107.8000,108.8000,109.6000,110.4000,111.0000,112.0000,113.4000,114.8000,116.0000,117.2000,118.8000,120.0000,
|
||||||
|
121.2000,122.8000,124.0000,125.2000,126.8000,128.0000,129.0000,130.0000,131.0000,132.0000,133.2000,134.4000,135.4000,136.6000,137.8000,
|
||||||
|
138.8000,139.8000,140.8000,141.8000,143.0000,144.0000,145.0000,146.6000,147.8000,149.0000,150.6000,151.8000,153.0000,154.4000,155.8000,
|
||||||
|
157.0000,158.2000,159.8000,160.8000,161.4000,162.0000,163.0000,163.8000,164.6000,165.0000,166.0000,166.8000,167.6000,168.2000,169.0000,
|
||||||
|
169.8000,170.8000,171.2000,172.0000,172.8000,173.8000,174.4000,175.0000,175.8000,177.0000,178.0000,179.2000,180.6000,181.8000,182.8000,
|
||||||
|
184.0000,185.0000,186.4000,187.8000,188.8000,190.0000,191.0000,192.2000,193.2000,194.2000,195.4000,196.4000,197.4000,198.4000,199.4000,
|
||||||
|
200.6000,201.6000,202.6000,203.6000,204.8000,205.8000,206.8000,207.8000,208.8000,209.8000,210.8000,211.8000,212.8000,214.0000,215.0000,
|
||||||
|
216.0000,217.0000,218.0000,219.0000,220.0000,221.2000,222.2000,223.4000,224.4000,225.8000,226.8000,228.0000,229.0000,230.2000,231.4000,
|
||||||
|
232.8000,233.8000,235.0000,236.0000,237.2000,238.6000,239.8000,241.0000,242.6000,244.0000,245.8000,247.0000,248.8000,250.2000,251.8000,
|
||||||
|
253.2000,254.8000,256.2000,257.2000,258.2000,259.0000,260.0000,261.0000,262.0000,263.0000,264.0000,265.0000,266.0000,267.0000,267.8000,
|
||||||
|
268.8000,269.8000,270.8000,271.8000,272.6000,273.0000,273.8000,274.6000,275.0000,275.8000,276.6000,277.0000,277.8000,278.4000,279.0000,
|
||||||
|
279.8000,280.4000,281.0000,281.8000,282.2000,283.0000,283.8000,284.2000,285.0000,285.8000,286.2000,287.0000,287.8000,288.0000,291.0000,
|
||||||
|
293.8000,296.4000,299.0000,301.8000,304.2000,305.2000,306.2000,307.2000,308.2000,309.2000,310.0000,311.0000,312.0000,313.0000,314.0000,
|
||||||
|
315.0000,316.0000,317.0000,318.0000,319.0000,320.0000,321.0000,322.2000,323.6000,324.8000,325.8000,326.8000,328.0000,329.0000,330.0000,
|
||||||
|
331.4000,332.6000,333.8000,334.8000,335.8000,336.8000,337.8000,338.8000,339.8000,340.6000,341.4000,342.2000,343.2000,344.0000,345.0000,
|
||||||
|
346.0000,347.0000,347.8000,348.8000,349.8000,350.8000,351.6000,352.4000,353.2000,354.0000,355.0000,356.0000,357.0000,357.8000,358.8000,
|
||||||
|
359.8000,360.8000,361.6000,362.4000,363.2000,364.0000,365.0000,366.0000,367.0000,367.8000,369.0000,370.4000,371.8000,373.0000,374.8000,
|
||||||
|
376.0000,377.4000,378.8000,380.0000,381.8000,383.0000,384.4000,386.0000,387.8000,389.0000,390.8000,392.2000,393.8000,395.4000,397.0000,
|
||||||
|
398.8000,400.0000,401.6000,402.8000,404.0000,405.4000,406.8000,408.0000,409.2000,410.8000,411.8000,413.0000,414.6000,415.8000,417.0000,
|
||||||
|
418.0000,419.0000,420.2000,421.4000,422.6000,423.8000,424.8000,425.8000,427.0000,428.0000,429.0000,430.2000,431.4000,432.4000,433.0000,
|
||||||
|
434.0000,434.8000,435.6000,436.2000,437.0000,437.8000,438.8000,439.4000,440.0000,441.0000,441.8000,442.6000,443.2000,444.0000,444.8000,
|
||||||
|
445.8000,446.4000,447.0000,448.0000,448.8000,449.8000,450.8000,451.6000,452.4000,453.2000,454.0000,455.0000,456.0000,456.8000,457.8000,
|
||||||
|
458.8000,459.8000,460.6000,461.4000,462.2000,463.0000,464.0000,465.6000,467.0000,468.8000,470.2000,472.0000,473.6000,475.0000,476.8000,
|
||||||
|
478.2000,479.8000,480.8000,481.8000,482.6000,483.2000,484.0000,485.0000,485.8000,486.8000,487.4000,488.0000,489.0000,489.8000,490.8000,
|
||||||
|
491.6000,492.4000,493.0000,494.0000,494.8000,495.8000,496.8000,498.2000,499.8000,501.4000,503.0000,504.8000,506.0000,507.8000,509.4000,
|
||||||
|
511.0000,512.4000,513.8000,514.8000,516.0000,517.0000,518.0000,519.4000,520.6000,521.8000,522.8000,524.0000,525.0000,526.2000,527.6000,
|
||||||
|
528.6000,529.4000,530.2000,531.0000,532.0000,533.0000,534.0000,534.8000,535.8000,536.8000,537.8000,538.6000,539.4000,540.2000,541.0000,
|
||||||
|
542.0000,543.0000,544.0000,545.4000,547.0000,548.8000,550.6000,552.2000,554.0000,555.8000,557.6000,559.0000,560.8000,561.8000,562.8000,
|
||||||
|
563.6000,564.6000,565.6000,566.6000,567.4000,568.4000,569.4000,570.4000,571.2000,572.2000,573.2000,574.2000,575.0000,576.0000,576.8000,
|
||||||
|
577.4000,578.0000,578.6000,579.0000,579.8000,580.2000,580.8000,581.4000,582.0000,582.8000,583.0000,583.8000,584.2000,585.0000,585.6000,
|
||||||
|
586.0000,586.8000,587.2000,587.8000,588.4000,589.0000,589.8000,590.0000,590.8000,591.2000,592.0000,593.0000,594.8000,596.6000,598.0000,
|
||||||
|
599.8000,601.8000,603.2000,605.0000,606.8000,608.2000,609.2000,610.0000,611.0000,612.0000,613.0000,614.0000,615.0000,615.8000,616.8000,
|
||||||
|
617.8000,618.8000,619.8000,620.6000,621.6000,622.4000,623.4000,624.2000,625.2000,626.2000,627.4000,628.4000,629.4000,630.4000,631.6000,
|
||||||
|
632.6000,633.6000,634.6000,635.8000,636.8000,637.8000,638.8000,639.8000,640.8000,641.8000,642.8000,643.8000,644.8000,645.8000,646.8000,
|
||||||
|
647.8000,648.8000,649.8000,650.8000,651.8000,652.8000,653.8000,654.8000,655.8000,657.0000,658.8000,660.2000,662.0000,663.8000,665.2000,
|
||||||
|
667.0000,668.6000,670.0000,671.8000,673.0000,674.0000,675.4000,676.6000,677.8000,678.8000,680.0000,681.0000,682.0000,683.2000,684.6000,
|
||||||
|
685.8000,686.8000,688.0000,689.0000,690.2000,691.6000,692.8000,693.8000,695.0000,696.2000,697.6000,698.8000,700.0000,701.0000,702.2000,
|
||||||
|
703.6000,704.8000,705.8000,706.8000,707.8000,708.8000,709.8000,710.8000,712.0000,713.0000,714.0000,715.0000,716.0000,717.0000,718.0000,
|
||||||
|
719.0000,720.0000,721.2000,722.2000,723.4000,724.4000,725.6000,726.6000,727.8000,728.8000,729.8000,730.8000,731.8000,732.8000,733.8000,
|
||||||
|
735.0000,736.0000,737.0000,738.0000,739.2000,740.4000,741.8000,742.8000,743.8000,745.0000,746.0000,747.0000,748.2000,749.4000,750.6000,
|
||||||
|
751.8000,752.8000,753.4000,754.0000,755.0000,755.8000,756.6000,757.2000,758.0000,758.8000,759.8000,760.4000,761.0000,762.0000,762.8000,
|
||||||
|
763.6000,764.2000,765.0000,765.8000,766.8000,767.4000,768.0000,774.0000,780.8000,784.8000,785.8000,786.6000,787.4000,788.4000,789.2000,
|
||||||
|
790.2000,791.0000,792.0000,793.0000,794.0000,795.0000,795.8000,796.8000,797.8000,798.8000,799.8000,800.8000,801.6000,802.4000,803.2000,
|
||||||
|
804.0000,805.0000,806.0000,806.8000,807.8000,808.8000,809.6000,810.4000,811.2000,812.0000,813.0000,814.0000,814.8000,815.8000,816.8000,
|
||||||
|
818.0000,819.0000,820.4000,821.8000,822.8000,824.0000,825.2000,826.6000,827.8000,829.0000,830.0000,831.2000,832.4000,833.0000,834.0000,
|
||||||
|
834.8000,835.8000,836.4000,837.0000,838.0000,838.8000,839.8000,840.4000,841.0000,842.0000,842.8000,843.8000,844.4000,845.0000,846.0000,
|
||||||
|
846.8000,847.6000,848.4000,849.8000,850.8000,852.0000,853.2000,854.8000,855.8000,857.0000,858.2000,859.6000,860.8000,862.0000,863.0000,
|
||||||
|
864.4000,865.4000,866.4000,867.4000,868.4000,869.4000,870.4000,871.4000,872.2000,873.2000,874.2000,875.2000,876.2000,877.2000,878.2000,
|
||||||
|
879.2000,880.2000,881.8000,882.8000,884.0000,885.2000,886.6000,887.8000,889.0000,890.0000,891.4000,892.8000,893.8000,895.0000,896.2000,
|
||||||
|
897.2000,898.2000,899.2000,900.2000,901.2000,902.0000,903.0000,904.0000,905.0000,906.0000,907.0000,908.0000,909.0000,910.0000,911.0000,
|
||||||
|
912.0000,913.4000,914.8000,916.0000,917.0000,918.6000,919.8000,921.0000,922.2000,923.8000,924.8000,926.0000,927.6000,928.6000,929.4000,
|
||||||
|
930.0000,931.0000,931.8000,932.8000,933.6000,934.2000,935.0000,936.0000,936.8000,937.8000,938.6000,939.2000,940.0000,941.0000,941.8000,
|
||||||
|
942.8000,943.6000,944.2000,945.4000,946.6000,947.8000,948.8000,949.8000,950.8000,952.0000,953.0000,954.0000,955.2000,956.4000,957.6000,
|
||||||
|
958.8000,959.8000,960.8000,962.0000,963.0000,964.2000,965.6000,966.8000,967.8000,969.0000,970.0000,971.4000,972.8000,973.8000,975.0000,
|
||||||
|
976.0000,977.2000,978.4000,979.8000,980.8000,982.0000,983.0000,984.2000,985.6000,986.8000,987.8000,989.0000,990.0000,991.2000,992.4000,
|
||||||
|
993.0000,993.8000,994.6000,995.0000,995.8000,996.8000,997.2000,998.0000,998.8000,999.4000,1000.0000,1000.8000,1001.6000,1002.0000,1003.0000,
|
||||||
|
1003.8000,1004.2000,1005.0000,1005.8000,1006.4000,1007.0000,1007.8000,1008.8000,1010.0000,1011.2000,1012.8000,1013.8000,1015.0000,1016.2000,1017.8000,
|
||||||
|
1018.8000,1020.0000,1021.2000,1022.8000,1023.8000,1025.0000,1026.0000,1027.0000,1028.0000,1029.0000,1030.2000,1031.4000,1032.4000,1033.6000,1034.8000,
|
||||||
|
1035.8000,1036.8000,1037.8000,1038.8000,1040.0000,1041.2000,1042.8000,1044.0000,1045.8000,1047.0000,1048.8000,1050.0000,1051.6000,1053.0000,1054.6000,
|
||||||
|
1056.0000,1057.0000,1057.8000,1058.8000,1059.6000,1060.4000,1061.2000,1062.0000,1063.0000,1064.0000,1064.8000,1065.8000,1066.6000,1067.4000,1068.2000,
|
||||||
|
1069.0000,1070.0000,1071.0000,1071.8000,1072.8000,1073.8000,1074.8000,1075.6000,1076.6000,1077.4000,1078.4000,1079.2000,1080.2000,1081.0000,1082.0000,
|
||||||
|
1083.0000,1084.0000,1085.0000,1086.0000,1086.8000,1087.8000,1088.8000,1090.0000,1091.0000,1092.0000,1093.2000,1094.4000,1095.6000,1096.8000,1097.8000,
|
||||||
|
1098.8000,1099.8000,1101.0000,1102.0000,1103.0000,1104.0000,1105.0000,1105.8000,1106.8000,1107.6000,1108.2000,1109.0000,1109.8000,1110.8000,1111.6000,
|
||||||
|
1112.2000,1113.0000,1114.0000,1114.8000,1115.8000,1116.4000,1117.0000,1118.0000,1118.8000,1119.8000,1120.6000,1121.6000,1122.8000,1123.8000,1124.8000,
|
||||||
|
1125.8000,1126.8000,1127.8000,1128.8000,1129.8000,1130.8000,1131.8000,1132.8000,1134.0000,1135.0000,1136.0000,1137.0000,1138.0000,1139.0000,1140.0000,
|
||||||
|
1141.0000,1142.0000,1143.0000,1144.0000,1145.0000,1146.0000,1146.8000,1147.8000,1148.8000,1149.8000,1150.8000,1151.8000,1153.0000,1154.4000,1155.8000,
|
||||||
|
1157.0000,1158.8000,1160.0000,1161.2000,1162.8000,1164.0000,1165.4000,1166.8000,1168.0000,1169.0000,1169.8000,1170.6000,1171.2000,1172.0000,1172.8000,
|
||||||
|
1173.8000,1174.6000,1175.2000,1176.0000,1176.8000,1177.8000,1178.4000,1179.0000,1180.0000,1180.8000,1181.8000,1182.4000,1183.0000,1184.0000,1185.6000,
|
||||||
|
1187.2000,1189.0000,1191.0000,1192.8000,1194.8000,1196.8000,1198.4000,1200.0000,1201.2000,1202.2000,1203.4000,1204.4000,1205.6000,1206.6000,1207.8000,
|
||||||
|
1208.8000,1209.8000,1210.8000,1211.8000,1212.8000,1213.8000,1215.0000,1216.0000,1217.0000,1218.0000,1218.8000,1219.8000,1220.8000,1221.8000,1222.8000,
|
||||||
|
1223.8000,1224.8000,1225.8000,1226.8000,1227.6000,1228.6000,1229.6000,1230.4000,1231.4000,1232.2000,1233.0000,1234.0000,1234.8000,1235.6000,1236.2000,
|
||||||
|
1237.0000,1237.8000,1238.8000,1239.4000,1240.0000,1241.0000,1241.8000,1242.8000,1243.4000,1244.0000,1245.0000,1245.8000,1246.8000,1247.4000,1248.0000,
|
||||||
|
1249.8000,1251.8000,1253.2000,1255.0000,1256.8000,1258.8000,1260.2000,1262.0000,1263.8000,1265.0000,1266.0000,1267.2000,1268.2000,1269.4000,1270.6000,
|
||||||
|
1271.8000,1272.8000,1273.8000,1275.0000,1276.0000,1277.0000,1278.0000,1279.2000,1280.2000,1281.0000,1282.0000,1283.0000,1284.0000,1284.8000,1285.8000,
|
||||||
|
1286.8000,1287.8000,1288.6000,1289.4000,1290.2000,1291.0000,1292.0000,1293.0000,1294.0000,1294.8000,1295.8000,1296.8000,1297.8000,1298.6000,1299.6000,
|
||||||
|
1300.4000,1301.2000,1302.0000,1303.0000,1304.0000,1305.0000,1306.0000,1306.8000,1307.8000,1308.8000,1309.8000,1310.8000,1311.6000,1312.8000,1314.8000,
|
||||||
|
1316.8000,1318.8000,1320.6000,1322.6000,1324.4000,1326.4000,1328.2000,1329.8000,1331.0000,1332.2000,1333.8000,1335.0000,1336.2000,1337.8000,1339.0000,
|
||||||
|
1340.2000,1341.8000,1343.0000,1344.0000,1345.0000,1346.0000,1347.0000,1348.0000,1349.0000,1349.8000,1350.8000,1351.8000,1352.8000,1353.8000,1354.6000,
|
||||||
|
1355.4000,1356.4000,1357.2000,1358.0000,1359.0000,1360.0000,1360.8000,1361.8000,1362.4000,1363.0000,1363.8000,1364.8000,1365.4000,1366.0000,1367.0000,
|
||||||
|
1367.8000,1368.4000,1369.0000,1370.0000,1370.8000,1371.4000,1372.0000,1373.0000,1373.8000,1374.6000,1375.0000,1376.0000,1377.0000,1378.4000,1379.8000,
|
||||||
|
1381.0000,1382.2000,1383.8000,1385.0000,1386.0000,1387.6000,1388.8000,1390.0000,1391.4000,1392.8000,1393.6000,1394.4000,1395.2000,1396.2000,1397.0000,
|
||||||
|
1398.0000,1399.0000,1400.0000,1400.8000,1401.8000,1402.8000,1403.8000,1404.8000,1405.6000,1406.4000,1407.4000,1408.6000,1411.0000,1413.8000,1416.4000,
|
||||||
|
1419.0000,1421.8000,1424.0000,1424.8000,1425.6000,1426.0000,1426.8000,1427.4000,1428.0000,1428.8000,1429.2000,1430.0000,1430.8000,1431.0000,1431.8000,
|
||||||
|
1432.6000,1433.0000,1433.8000,1434.4000,1435.0000,1435.8000,1436.2000,1436.8000,1437.6000,1438.0000,1438.8000,1439.4000,1440.0000,1441.2000,1442.8000,
|
||||||
|
1444.0000,1445.8000,1447.0000,1448.6000,1450.0000,1451.4000,1452.8000,1454.2000,1455.8000,1456.8000,1457.8000,1458.8000,1459.8000,1460.6000,1461.4000,
|
||||||
|
1462.2000,1463.0000,1464.0000,1465.0000,1466.0000,1466.8000,1467.8000,1468.8000,1469.8000,1470.6000,1471.4000,1472.4000,1473.8000,1475.0000,1476.6000,
|
||||||
|
1477.8000,1479.0000,1480.8000,1482.0000,1483.4000,1484.8000,1486.0000,1487.6000,1488.8000,1489.8000,1490.8000,1491.8000,1492.8000,1493.8000,1494.8000,
|
||||||
|
1495.8000,1496.8000,1497.8000,1498.8000,1499.8000,1500.8000,1501.8000,1502.8000,1503.8000,1504.8000,1505.8000,1506.6000,1507.4000,1508.2000,1509.0000,
|
||||||
|
1510.0000,1510.8000,1511.8000,1512.8000,1513.6000,1514.4000,1515.0000,1516.0000,1517.0000,1517.8000,1518.8000,1519.8000,1520.8000,1522.4000,1524.0000,
|
||||||
|
1525.8000,1527.8000,1529.2000,1531.0000,1532.8000,1534.6000,1536.0000,1537.0000,1538.0000,1539.0000,1540.0000,1540.8000,1541.8000,1542.8000,1543.8000,
|
||||||
|
1544.8000,1545.8000,1546.6000,1547.4000,1548.4000,1549.2000,1550.0000,1551.0000,1552.0000,1553.6000,1555.0000,1556.4000,1557.8000,1559.2000,1560.8000,
|
||||||
|
1562.0000,1563.8000,1565.0000,1566.8000,1568.0000,1569.0000,1569.8000,1570.8000,1571.4000,1572.0000,1573.0000,1573.8000,1574.8000,1575.6000,1576.2000,
|
||||||
|
1577.0000,1578.0000,1578.8000,1579.8000,1580.4000,1581.0000,1582.0000,1582.8000,1583.8000,1584.8000,1585.8000,1586.8000,1587.8000,1588.8000,1589.8000,
|
||||||
|
1590.8000,1591.8000,1592.8000,1593.8000,1594.8000,1595.8000,1596.8000,1597.8000,1598.8000,1599.8000,1600.8000,1601.8000,1602.4000,1603.0000,1604.0000,
|
||||||
|
1605.0000,1605.8000,1606.8000,1607.4000,1608.2000,1609.0000,1610.0000,1610.8000,1611.8000,1612.6000,1613.2000,1614.0000,1615.0000,1615.8000,1617.0000,
|
||||||
|
1618.2000,1619.8000,1621.0000,1622.4000,1623.8000,1625.0000,1626.6000,1627.8000,1629.0000,1630.6000,1631.8000,1633.0000,1634.2000,1635.6000,1636.8000,
|
||||||
|
1638.0000,1639.0000,1640.2000,1641.6000,1642.8000,1644.0000,1645.0000,1646.2000,1647.6000,1648.8000,1649.6000,1650.4000,1651.2000,1652.0000,1653.0000,
|
||||||
|
1654.0000,1654.8000,1655.8000,1656.8000,1657.6000,1658.4000,1659.2000,1660.0000,1661.0000,1662.0000,1662.8000,1663.8000,1664.8000,1665.8000,1666.8000,
|
||||||
|
1668.0000,1669.0000,1670.0000,1671.0000,1672.0000,1673.0000,1674.2000,1675.4000,1676.4000,1677.6000,1678.6000,1679.8000,1680.8000,1681.4000,1682.2000,
|
||||||
|
1683.0000,1684.0000,1684.8000,1685.8000,1686.8000,1687.4000,1688.2000,1689.0000,1690.0000,1690.8000,1691.8000,1692.6000,1693.4000,1694.0000,1695.0000,
|
||||||
|
1696.0000,1697.4000,1699.0000,1700.8000,1702.8000,1704.2000,1706.0000,1707.8000,1709.6000,1711.2000,1712.8000,1713.4000,1714.0000,1715.0000,1715.8000,
|
||||||
|
1716.6000,1717.2000,1718.0000,1718.8000,1719.8000,1720.6000,1721.0000,1722.0000,1722.8000,1723.8000,1724.4000,1725.0000,1726.0000,1726.8000,1727.8000,
|
||||||
|
1728.4000,1729.6000,1730.8000,1731.8000,1732.8000,1733.8000,1735.0000,1736.0000,1737.0000,1738.0000,1739.0000,1740.2000,1741.4000,1742.6000,1743.8000,
|
||||||
|
1744.8000,1745.8000,1746.8000,1748.0000,1749.0000,1750.0000,1751.0000,1752.2000,1753.4000,1754.6000,1755.8000,1756.8000,1757.8000,1758.8000,1760.0000,
|
||||||
|
1761.0000,1762.0000,1763.0000,1764.0000,1765.0000,1766.0000,1767.0000,1768.0000,1769.0000,1770.0000,1771.2000,1772.2000,1773.2000,1774.2000,1775.4000,
|
||||||
|
1776.4000,1777.8000,1779.0000,1780.4000,1781.8000,1783.0000,1784.4000,1785.8000,1787.0000,1788.4000,1789.8000,1791.0000,1792.4000,1793.8000,1795.0000,
|
||||||
|
1796.4000,1797.8000,1799.0000,1800.4000,1801.8000,1803.0000,1804.6000,1805.8000,1807.0000,1808.4000,1809.4000,1810.2000,1811.2000,1812.0000,1813.0000,
|
||||||
|
1814.0000,1815.0000,1816.0000,1817.0000,1818.0000,1819.0000,1819.8000,1820.8000,1821.8000,1822.8000,1823.8000,1824.8000,1825.6000,1826.4000,1827.2000,
|
||||||
|
1828.0000,1829.0000,1830.0000,1831.0000,1831.8000,1832.8000,1833.8000,1834.6000,1835.4000,1836.2000,1837.0000,1838.0000,1839.0000,1839.8000,1841.0000,
|
||||||
|
1842.2000,1843.8000,1844.8000,1846.0000,1847.2000,1848.8000,1849.8000,1851.0000,1852.4000,1853.8000,1855.0000,1856.0000,1857.0000,1858.0000,1858.8000,
|
||||||
|
1859.8000,1860.8000,1861.6000,1862.4000,1863.2000,1864.0000,1865.0000,1866.0000,1866.8000,1867.8000,1868.8000,1869.8000,1870.4000,1871.2000,1872.0000,
|
||||||
|
1873.6000,1874.8000,1876.0000,1877.2000,1878.8000,1879.8000,1881.0000,1882.4000,1883.8000,1885.0000,1886.0000,1887.6000,1888.8000,1890.0000,1891.4000,
|
||||||
|
1892.8000,1894.0000,1895.4000,1896.8000,1898.0000,1899.4000,1900.8000,1902.0000,1903.2000,1904.8000,1905.8000,1906.8000,1907.8000,1909.0000,1910.0000,
|
||||||
|
1911.0000,1912.0000,1913.2000,1914.4000,1915.6000,1916.8000,1917.8000,1918.8000,1919.8000,1920.8000,1921.6000,1922.0000,1923.0000,1923.8000,1924.6000,
|
||||||
|
1925.0000,1926.0000,1926.8000,1927.4000,1928.0000,1929.0000,1929.8000,1930.4000,1931.0000,1932.0000,1932.8000,1933.4000,1934.0000,1934.8000,1935.8000,
|
||||||
|
1936.6000,1937.8000,1938.8000,1939.8000,1941.0000,1942.0000,1943.0000,1944.2000,1945.4000,1946.6000,1947.8000,1948.8000,1950.0000,1951.0000,1952.0000,
|
||||||
|
1953.2000,1954.6000,1955.8000,1956.8000,1958.0000,1959.0000,1960.4000,1961.8000,1962.8000,1964.0000,1965.0000,1966.2000,1967.6000,1968.8000,1970.4000,
|
||||||
|
1972.0000,1973.4000,1975.0000,1976.6000,1978.0000,1979.8000,1981.0000,1982.8000,1984.0000,1985.0000,1985.8000,1986.8000,1987.6000,1988.2000,1989.0000,
|
||||||
|
1990.0000,1990.8000,1991.6000,1992.4000,1993.0000,1994.0000,1994.8000,1995.8000,1996.4000,1997.2000,1998.0000,1999.0000,1999.8000,2000.8000,2001.8000,
|
||||||
|
2002.8000,2003.8000,2004.8000,2005.8000,2006.8000,2007.8000,2008.8000,2009.8000,2010.8000,2011.8000,2012.8000,2013.8000,2014.8000,2015.8000,2017.0000,
|
||||||
|
2018.6000,2019.8000,2021.0000,2022.6000,2023.8000,2025.0000,2026.6000,2027.8000,2029.0000,2030.6000,2031.8000,2032.6000,2033.0000,2033.4000,2033.8000,
|
||||||
|
2034.2000,2034.8000,2035.0000,2035.8000,2036.0000,2036.6000,2037.0000,2037.4000,2037.8000,2038.2000,2038.8000,2039.0000,2039.8000,2040.0000,2040.6000,
|
||||||
|
2041.0000,2041.4000,2041.8000,2042.0000,2042.8000,2043.0000,2043.8000,2044.0000,2044.4000,2044.8000,2045.2000,2045.8000,2046.0000,2046.8000,2047.0000,
|
||||||
|
2047.6000,2048.0000,2048.8000,2050.0000,2051.2000,2052.6001,2053.8000,2055.0000,2056.0000,2057.3999,2058.8000,2060.0000,2061.0000,2062.3999,2063.8000,
|
||||||
|
2064.8000,2065.8000,2066.8000,2067.8000,2068.8000,2069.8000,2070.8000,2071.8000,2072.8000,2073.8000,2074.8000,2075.8000,2076.8000,2077.6001,2078.6001,
|
||||||
|
2079.6001,2080.8000,2081.8000,2083.0000,2084.2000,2085.6001,2086.8000,2088.0000,2089.0000,2090.3999,2091.8000,2092.8000,2094.0000,2095.2000,2096.3999,
|
||||||
|
2097.0000,2098.0000,2098.8000,2099.6001,2100.2000,2101.0000,2101.8000,2102.8000,2103.3999,2104.0000,2105.0000,2105.8000,2106.6001,2107.2000,2108.0000,
|
||||||
|
2108.8000,2109.8000,2110.3999,2111.0000,2112.0000,2113.0000,2114.3999,2115.8000,2117.0000,2118.3999,2119.8000,2121.0000,2122.3999,2123.8000,2125.0000,
|
||||||
|
2126.3999,2127.8000,2129.0000,2130.8000,2132.0000,2133.8000,2135.2000,2136.8000,2138.2000,2139.8000,2141.2000,2142.8000,2144.2000,2145.3999,2146.6001,
|
||||||
|
2147.8000,2148.8000,2149.8000,2151.0000,2152.0000,2153.0000,2154.2000,2155.3999,2156.6001,2157.8000,2158.8000,2159.8000,2160.8000,2161.6001,2162.2000,
|
||||||
|
2163.0000,2164.0000,2164.8000,2165.8000,2166.3999,2167.0000,2168.0000,2168.8000,2169.8000,2170.3999,2171.0000,2172.0000,2172.8000,2173.8000,2174.3999,
|
||||||
|
2175.0000,2176.0000,2177.0000,2178.0000,2179.0000,2179.8000,2180.8000,2181.8000,2182.8000,2183.8000,2184.8000,2185.8000,2186.8000,2187.8000,2188.8000,
|
||||||
|
2189.8000,2190.8000,2191.8000,2192.8000,2193.8000,2194.8000,2195.8000,2196.8000,2197.8000,2199.0000,2200.0000,2201.0000,2202.0000,2203.0000,2204.0000,
|
||||||
|
2205.0000,2206.0000,2207.0000,2208.0000,2209.0000,2209.8000,2210.8000,2211.8000,2212.8000,2213.6001,2214.3999,2215.2000,2216.0000,2217.0000,2218.0000,
|
||||||
|
2219.0000,2219.8000,2220.8000,2221.8000,2222.6001,2223.3999,2224.3999,2225.3999,2226.3999,2227.6001,2228.6001,2229.6001,2230.8000,2231.8000,2232.8000,
|
||||||
|
2233.8000,2234.8000,2235.8000,2236.8000,2237.8000,2238.8000,2240.0000,2241.8000,2243.6001,2245.6001,2247.3999,2249.2000,2251.2000,2253.0000,2255.0000,
|
||||||
|
2256.8000,2257.3999,2258.0000,2259.0000,2259.8000,2260.6001,2261.2000,2262.0000,2262.8000,2263.8000,2264.6001,2265.2000,2266.0000,2266.8000,2267.8000,
|
||||||
|
2268.3999,2269.0000,2270.0000,2270.8000,2271.8000,2272.3999,2273.2000,2274.0000,2275.0000,2276.0000,2277.0000,2277.8000,2278.8000,2279.8000,2280.8000,
|
||||||
|
2281.6001,2282.3999,2283.2000,2284.0000,2285.0000,2286.0000,2287.0000,2287.8000,2289.0000,2290.3999,2291.8000,2293.0000,2294.6001,2295.8000,2297.0000,
|
||||||
|
2298.8000,2300.0000,2301.3999,2302.8000,2304.0000,2305.3999,2306.8000,2308.0000,2309.0000,2310.6001,2311.8000,2313.0000,2314.2000,2315.8000,2316.8000,
|
||||||
|
2318.0000,2319.3999,2320.8000,2321.8000,2322.8000,2323.8000,2324.8000,2325.8000,2326.8000,2327.8000,2329.0000,2330.0000,2331.0000,2332.0000,2333.0000,
|
||||||
|
2334.0000,2335.0000,2336.0000,2337.3999,2338.8000,2339.8000,2341.0000,2342.2000,2343.6001,2344.8000,2346.0000,2347.0000,2348.3999,2349.8000,2350.8000,
|
||||||
|
2352.0000,2353.2000,2354.8000,2356.0000,2357.2000,2358.8000,2360.0000,2361.2000,2362.8000,2364.0000,2365.2000,2366.8000,2368.0000,2368.8000,2369.8000,
|
||||||
|
2370.3999,2371.0000,2372.0000,2372.8000,2373.8000,2374.2000,2375.0000,2376.0000,2376.8000,2377.6001,2378.2000,2379.0000,2379.8000,2380.8000,2381.3999,
|
||||||
|
2382.0000,2383.0000,2383.8000,2385.0000,2387.0000,2389.0000,2391.0000,2393.0000,2395.0000,2397.0000,2399.0000,2400.8000,2401.2000,2402.0000,2402.8000,
|
||||||
|
2403.8000,2404.3999,2405.0000,2406.0000,2406.8000,2407.6001,2408.2000,2409.0000,2409.8000,2410.8000,2411.2000,2412.0000,2412.8000,2413.8000,2414.3999,
|
||||||
|
2415.0000,2416.0000,2417.0000,2418.3999,2419.8000,2421.0000,2422.2000,2423.8000,2425.0000,2426.0000,2427.6001,2428.8000,2430.0000,2431.6001,2432.8000,
|
||||||
|
2433.6001,2434.3999,2435.2000,2436.0000,2437.0000,2438.0000,2439.0000,2439.8000,2440.8000,2441.8000,2442.8000,2443.6001,2444.3999,2445.2000,2446.0000,
|
||||||
|
2447.0000,2448.0000,2449.0000,2450.2000,2451.6001,2452.8000,2453.8000,2455.0000,2456.2000,2457.3999,2458.8000,2459.8000,2461.0000,2462.0000,2463.3999,
|
||||||
|
2464.6001,2465.2000,2466.0000,2467.0000,2468.0000,2468.8000,2469.8000,2470.8000,2471.6001,2472.3999,2473.2000,2474.0000,2475.0000,2476.0000,2476.8000,
|
||||||
|
2477.8000,2478.8000,2479.6001,2480.6001,2481.8000,2482.8000,2484.0000,2485.2000,2486.6001,2487.8000,2489.0000,2490.0000,2491.2000,2492.6001,2493.8000,
|
||||||
|
2495.0000,2496.0000,2497.0000,2498.2000,2499.2000,2500.3999,2501.3999,2502.6001,2503.8000,2504.8000,2505.8000,2506.8000,2507.8000,2508.8000,2509.8000,
|
||||||
|
2511.0000,2512.0000,2513.0000,2514.2000,2515.3999,2516.8000,2517.8000,2518.8000,2520.0000,2521.0000,2522.2000,2523.6001,2524.8000,2525.8000,2527.0000,
|
||||||
|
2528.0000,2529.6001,2531.0000,2532.6001,2534.0000,2535.6001,2537.0000,2538.6001,2540.0000,2541.6001,2543.0000,2544.6001,2546.0000,2547.8000,2549.0000,
|
||||||
|
2550.8000,2552.2000,2553.8000,2555.3999,2557.0000,2558.8000,2560.0000,2561.0000,2561.8000,2562.6001,2563.0000,2564.0000,2564.8000,2565.8000,2566.2000,
|
||||||
|
2567.0000,2567.8000,2568.8000,2569.3999,2570.0000,2571.0000,2571.8000,2572.6001,2573.2000,2574.0000,2574.8000,2575.8000,2576.3999,2577.8000,2578.8000,
|
||||||
|
2579.8000,2581.0000,2582.0000,2583.2000,2584.6001,2585.8000,2586.8000,2588.0000,2589.0000,2590.0000,2591.3999,2592.6001,2593.3999,2594.3999,2595.2000,
|
||||||
|
2596.0000,2597.0000,2598.0000,2599.0000,2600.0000,2601.0000,2601.8000,2602.8000,2603.8000,2604.8000,2605.8000,2606.8000,2607.6001,2608.6001,2609.8000,
|
||||||
|
2611.0000,2612.0000,2613.6001,2614.8000,2616.0000,2617.0000,2618.3999,2619.8000,2620.8000,2622.0000,2623.2000,2624.6001,2625.3999,2626.3999,2627.2000,
|
||||||
|
2628.0000,2629.0000,2630.0000,2631.0000,2632.0000,2633.0000,2633.8000,2634.8000,2635.8000,2636.8000,2637.8000,2638.6001,2639.6001,2640.3999,2641.6001,
|
||||||
|
2642.6001,2643.8000,2644.8000,2645.8000,2646.8000,2647.8000,2648.8000,2649.8000,2651.0000,2652.0000,2653.0000,2654.0000,2655.0000,2656.0000,2657.2000,
|
||||||
|
2658.3999,2659.6001,2660.8000,2661.8000,2663.0000,2664.0000,2665.0000,2666.2000,2667.3999,2668.6001,2669.8000,2670.8000,2672.0000,2673.0000,2674.0000,
|
||||||
|
2675.0000,2676.0000,2677.0000,2678.0000,2679.0000,2680.0000,2681.0000,2682.0000,2683.0000,2684.0000,2685.0000,2686.0000,2687.0000,2688.0000,2689.0000,
|
||||||
|
2690.0000,2691.3999,2692.6001,2693.8000,2694.8000,2695.8000,2697.0000,2698.0000,2699.0000,2700.0000,2701.3999,2702.6001,2703.8000,2704.8000,2705.8000,
|
||||||
|
2706.8000,2707.8000,2708.8000,2709.8000,2710.6001,2711.6001,2712.6001,2713.6001,2714.6001,2715.6001,2716.3999,2717.3999,2718.3999,2719.3999,2720.8000,
|
||||||
|
2722.8000,2725.0000,2727.0000,2729.3999,2731.6001,2733.8000,2736.0000,2737.0000,2737.8000,2738.8000,2739.6001,2740.3999,2741.0000,2742.0000,2743.0000,
|
||||||
|
2743.8000,2744.8000,2745.6001,2746.2000,2747.0000,2748.0000,2748.8000,2749.8000,2750.8000,2751.6001,2752.2000,2753.0000,2753.8000,2754.0000,2754.8000,
|
||||||
|
2755.6001,2756.0000,2756.8000,2757.3999,2758.0000,2758.8000,2759.3999,2760.0000,2760.8000,2761.2000,2762.0000,2762.8000,2763.0000,2763.8000,2764.6001,
|
||||||
|
2765.0000,2765.8000,2766.3999,2767.0000,2767.8000,2768.6001,2769.8000,2771.0000,2772.0000,2773.3999,2774.8000,2775.8000,2777.0000,2778.2000,2779.6001,
|
||||||
|
2780.8000,2782.0000,2783.0000,2784.2000,2785.0000,2786.0000,2787.0000,2787.8000,2788.8000,2789.8000,2790.6001,2791.3999,2792.0000,2793.0000,2794.0000,
|
||||||
|
2794.8000,2795.8000,2796.8000,2797.6001,2798.3999,2799.2000,2800.0000,2801.8000,2803.0000,2804.6001,2805.8000,2807.2000,2808.8000,2810.0000,2811.8000,
|
||||||
|
2813.0000,2814.3999,2815.8000,2817.3999,2819.0000,2820.6001,2822.0000,2823.8000,2825.0000,2826.8000,2828.3999,2830.0000,2831.6001,2832.8000,2833.8000,
|
||||||
|
2834.6001,2835.2000,2836.0000,2837.0000,2838.0000,2838.8000,2839.8000,2840.8000,2841.6001,2842.3999,2843.2000,2844.0000,2845.0000,2845.8000,2846.8000,
|
||||||
|
2847.8000,2848.8000,2849.8000,2851.0000,2852.2000,2853.8000,2854.8000,2856.0000,2857.0000,2858.6001,2859.8000,2861.0000,2862.0000,2863.3999,2864.6001,
|
||||||
|
2865.2000,2866.0000,2867.0000,2867.8000,2868.8000,2869.6001,2870.3999,2871.0000,2872.0000,2873.0000,2873.8000,2874.8000,2875.3999,2876.2000,2877.0000,
|
||||||
|
2878.0000,2878.8000,2879.8000,2880.6001,2881.6001,2882.6001,2883.6001,2884.6001,2885.3999,2886.3999,2887.3999,2888.3999,2889.3999,2890.2000,2891.2000,
|
||||||
|
2892.2000,2893.2000,2894.0000,2895.0000,2896.0000,2898.0000,2900.0000,2902.0000,2904.0000,2906.0000,2908.0000,2910.0000,2912.0000,2913.0000,2914.0000,
|
||||||
|
2915.0000,2916.0000,2917.0000,2918.0000,2919.0000,2920.0000,2921.0000,2922.0000,2923.0000,2924.0000,2925.0000,2926.0000,2927.0000,2928.0000,2928.8000,
|
||||||
|
2929.8000,2930.8000,2931.3999,2932.2000,2933.0000,2934.0000,2935.0000,2935.8000,2936.8000,2937.8000,2938.3999,2939.2000,2940.0000,2941.0000,2942.0000,
|
||||||
|
2942.8000,2943.8000,2944.6001,2945.3999,2946.2000,2947.0000,2948.0000,2949.0000,2950.0000,2950.8000,2951.8000,2952.8000,2953.6001,2954.3999,2955.2000,
|
||||||
|
2956.0000,2957.0000,2958.0000,2958.8000,2959.8000,2960.8000,2961.8000,2962.8000,2963.6001,2964.6001,2965.3999,2966.3999,2967.2000,2968.2000,2969.0000,
|
||||||
|
2970.0000,2971.0000,2972.0000,2973.0000,2974.0000,2974.8000,2975.8000,2977.0000,2978.8000,2980.0000,2981.8000,2983.0000,2984.6001,2986.0000,2987.6001,
|
||||||
|
2989.0000,2990.3999,2992.0000,2993.0000,2994.0000,2995.0000,2996.0000,2997.0000,2998.0000,2999.0000,3000.0000,3001.0000,3002.0000,3003.0000,3004.0000,
|
||||||
|
3005.0000,3006.0000,3007.0000,3008.0000,3009.0000,3010.8000,3012.0000,3013.6001,3015.0000,3016.3999,3017.8000,3019.2000,3020.8000,3022.0000,3023.8000,
|
||||||
|
3024.8000,3025.8000,3026.6001,3027.3999,3028.2000,3029.0000,3030.0000,3031.0000,3032.0000,3032.8000,3033.8000,3034.8000,3035.6001,3036.3999,3037.2000,
|
||||||
|
3038.0000,3039.0000,3040.0000,3040.8000,3041.6001,3042.2000,3043.0000,3043.8000,3044.3999,3045.0000,3046.0000,3046.8000,3047.3999,3048.0000,3048.8000,
|
||||||
|
3049.8000,3050.2000,3051.0000,3051.8000,3052.6001,3053.0000,3054.0000,3054.8000,3055.3999,3056.0000,3057.0000,3058.0000,3059.0000,3060.0000,3061.0000,
|
||||||
|
3062.0000,3063.0000,3064.0000,3065.0000,3066.0000,3067.0000,3067.8000,3068.8000,3069.8000,3070.8000,3071.8000,3073.0000,3074.6001,3075.8000,3077.0000,
|
||||||
|
3078.8000,3080.0000,3081.3999,3082.8000,3084.0000,3085.6001,3087.0000,3088.2000,3089.0000,3089.8000,3090.8000,3091.6001,3092.2000,3093.0000,3094.0000,
|
||||||
|
3094.8000,3095.6001,3096.2000,3097.0000,3098.0000,3098.8000,3099.8000,3100.3999,3101.0000,3102.0000,3102.8000,3103.8000,3104.6001,3105.8000,3106.8000,
|
||||||
|
3107.8000,3108.8000,3110.0000,3111.0000,3112.0000,3113.0000,3114.2000,3115.2000,3116.3999,3117.6001,3118.8000,3119.8000,3120.8000,3122.0000,3123.2000,
|
||||||
|
3124.6001,3125.8000,3127.0000,3128.0000,3129.3999,3130.8000,3131.8000,3133.0000,3134.3999,3135.8000,3136.8000,3138.0000,3139.2000,3140.6001,3141.8000,
|
||||||
|
3143.0000,3144.0000,3145.6001,3146.8000,3148.0000,3149.0000,3150.3999,3151.8000,3152.8000,3153.8000,3154.8000,3155.8000,3156.8000,3157.8000,3158.8000,
|
||||||
|
3159.8000,3160.8000,3161.8000,3162.8000,3163.8000,3164.8000,3165.8000,3166.8000,3168.0000,3168.8000,3169.8000,3170.3999,3171.0000,3172.0000,3172.8000,
|
||||||
|
3173.8000,3174.6001,3175.2000,3176.0000,3176.8000,3177.8000,3178.6001,3179.2000,3180.0000,3181.0000,3181.8000,3182.8000,3183.3999,3184.0000,3185.0000,
|
||||||
|
3185.8000,3186.8000,3187.8000,3188.3999,3189.0000,3190.0000,3190.8000,3191.8000,3192.8000,3193.3999,3194.0000,3195.0000,3196.0000,3196.8000,3197.8000,
|
||||||
|
3198.3999,3199.2000,3200.0000,3201.8000,3203.8000,3205.2000,3207.0000,3209.0000,3210.8000,3212.6001,3214.2000,3216.0000,3217.0000,3217.8000,3218.8000,
|
||||||
|
3219.3999,3220.0000,3221.0000,3221.8000,3222.8000,3223.3999,3224.0000,3225.0000,3225.8000,3226.8000,3227.3999,3228.0000,3229.0000,3229.8000,3230.8000,
|
||||||
|
3231.3999,3232.2000,3233.3999,3234.8000,3235.8000,3237.0000,3238.0000,3239.2000,3240.3999,3241.8000,3242.8000,3244.0000,3245.0000,3246.0000,3247.3999,
|
||||||
|
3248.8000,3249.8000,3251.0000,3252.0000,3253.6001,3254.8000,3256.0000,3257.0000,3258.3999,3259.8000,3260.8000,3262.0000,3263.0000,3264.2000,3264.8000,
|
||||||
|
3265.2000,3265.8000,3266.0000,3266.8000,3267.0000,3267.8000,3268.0000,3268.8000,3269.0000,3269.8000,3270.0000,3270.8000,3271.0000,3271.8000,3272.0000,
|
||||||
|
3272.8000,3273.0000,3273.6001,3274.0000,3274.6001,3275.0000,3275.6001,3276.0000,3276.3999,3277.0000,3277.3999,3277.8000,3278.3999,3278.8000,3279.2000,
|
||||||
|
3279.8000,3280.8000,3282.0000,3283.6001,3285.0000,3286.3999,3287.8000,3289.2000,3290.8000,3292.0000,3293.8000,3295.0000,3296.6001,3297.6001,3298.6001,
|
||||||
|
3299.6001,3300.6001,3301.8000,3302.8000,3303.8000,3304.8000,3305.8000,3306.8000,3307.8000,3308.8000,3309.8000,3310.8000,3311.8000,3312.8000,3313.8000,
|
||||||
|
3314.8000,3315.8000,3317.0000,3318.0000,3319.0000,3320.0000,3321.0000,3322.0000,3323.0000,3324.0000,3325.0000,3326.2000,3327.2000,3328.2000,3329.0000,
|
||||||
|
3329.8000,3330.3999,3331.0000,3331.8000,3332.6001,3333.0000,3334.0000,3334.8000,3335.2000,3336.0000,3336.8000,3337.6001,3338.0000,3338.8000,3339.8000,
|
||||||
|
3340.2000,3341.0000,3341.8000,3342.3999,3343.0000,3343.8000,3344.6001,3345.2000,3346.0000,3347.0000,3347.8000,3348.8000,3349.3999,3350.0000,3351.0000,
|
||||||
|
3351.8000,3352.8000,3353.3999,3354.0000,3355.0000,3355.8000,3356.8000,3357.6001,3358.2000,3359.0000,3359.8000,3361.0000,3362.8000,3364.0000,3365.8000,
|
||||||
|
3367.0000,3368.8000,3370.0000,3371.8000,3373.2000,3374.8000,3376.0000,3377.0000,3377.8000,3378.2000,3379.0000,3379.8000,3380.3999,3381.0000,3381.8000,
|
||||||
|
3382.6001,3383.0000,3384.0000,3384.8000,3385.2000,3386.0000,3386.8000,3387.3999,3388.0000,3388.8000,3389.6001,3390.0000,3391.0000,3391.8000,3392.3999,
|
||||||
|
3393.2000,3394.2000,3395.0000,3396.0000,3397.0000,3398.0000,3399.0000,3400.0000,3401.0000,3401.8000,3402.8000,3403.8000,3404.8000,3405.8000,3406.8000,
|
||||||
|
3407.6001,3408.6001,3409.2000,3410.0000,3411.0000,3411.8000,3412.8000,3413.6001,3414.3999,3415.0000,3416.0000,3417.0000,3417.8000,3418.8000,3419.6001,
|
||||||
|
3420.2000,3421.0000,3422.0000,3422.8000,3423.8000,3424.8000,3426.0000,3427.6001,3428.8000,3430.0000,3431.6001,3433.0000,3434.2000,3435.8000,3437.0000,
|
||||||
|
3438.3999,3439.8000,3440.8000,3441.6001,3442.0000,3443.0000,3443.8000,3444.6001,3445.2000,3446.0000,3446.8000,3447.8000,3448.2000,3449.0000,3449.8000,
|
||||||
|
3450.8000,3451.3999,3452.0000,3453.0000,3453.8000,3454.6001,3455.0000,3456.0000,3456.8000,3457.8000,3458.3999,3459.0000,3460.0000,3460.8000,3461.8000,
|
||||||
|
3462.3999,3463.0000,3464.0000,3464.8000,3465.6001,3466.2000,3467.0000,3468.0000,3468.8000,3469.6001,3470.2000,3471.0000,3471.8000,3472.8000,3473.8000,
|
||||||
|
3474.8000,3475.8000,3476.8000,3477.8000,3478.8000,3479.8000,3480.8000,3481.8000,3482.8000,3483.8000,3484.8000,3485.8000,3486.8000,3487.8000,3488.8000,
|
||||||
|
3489.6001,3490.3999,3491.0000,3492.0000,3493.0000,3493.8000,3494.8000,3495.8000,3496.6001,3497.2000,3498.0000,3499.0000,3500.0000,3500.8000,3501.8000,
|
||||||
|
3502.8000,3503.3999,3504.2000,3505.0000,3505.8000,3506.0000,3506.8000,3507.6001,3508.0000,3508.8000,3509.6001,3510.0000,3510.8000,3511.3999,3512.0000,
|
||||||
|
3512.8000,3513.3999,3514.0000,3514.8000,3515.2000,3516.0000,3516.8000,3517.2000,3518.0000,3518.8000,3519.0000,3519.8000,3520.8000,3521.2000,3522.0000,
|
||||||
|
3522.8000,3523.8000,3524.2000,3525.0000,3525.8000,3526.8000,3527.2000,3528.0000,3528.8000,3529.8000,3530.2000,3531.0000,3531.8000,3532.6001,3533.2000,
|
||||||
|
3534.0000,3534.8000,3535.6001,3536.2000,3537.2000,3538.3999,3539.3999,3540.6001,3541.6001,3542.8000,3543.8000,3544.8000,3545.8000,3546.8000,3547.8000,
|
||||||
|
3548.8000,3549.8000,3550.8000,3552.0000,3552.8000,3553.8000,3554.2000,3555.0000,3556.0000,3556.8000,3557.6001,3558.0000,3559.0000,3559.8000,3560.8000,
|
||||||
|
3561.3999,3562.0000,3563.0000,3563.8000,3564.6001,3565.2000,3566.0000,3566.8000,3567.8000,3568.3999,3569.3999,3570.3999,3571.2000,3572.2000,3573.2000,
|
||||||
|
3574.0000,3575.0000,3576.0000,3577.0000,3578.0000,3579.0000,3580.0000,3581.0000,3582.0000,3583.0000,3584.0000,3584.8000,3585.2000,3586.0000,3586.8000,
|
||||||
|
3587.2000,3588.0000,3588.8000,3589.0000,3589.8000,3590.6001,3591.0000,3591.8000,3592.6001,3593.0000,3593.8000,3594.3999,3595.0000,3595.8000,3596.2000,
|
||||||
|
3597.0000,3597.8000,3598.2000,3599.0000,3599.8000,3600.2000,3601.0000,3602.0000,3603.0000,3603.8000,3604.8000,3605.8000,3606.8000,3607.6001,3608.3999,
|
||||||
|
3609.2000,3610.0000,3611.0000,3612.0000,3612.8000,3613.8000,3614.8000,3615.8000,3616.3999,3617.0000,3617.8000,3618.2000,3619.0000,3619.8000,3620.0000,
|
||||||
|
3620.8000,3621.6001,3622.0000,3622.8000,3623.3999,3624.0000,3624.8000,3625.2000,3625.8000,3626.6001,3627.0000,3627.8000,3628.3999,3629.0000,3629.8000,
|
||||||
|
3630.2000,3631.0000,3631.8000,3632.0000,3633.0000,3633.8000,3634.2000,3635.0000,3635.8000,3636.2000,3637.0000,3637.8000,3638.2000,3639.0000,3639.8000,
|
||||||
|
3640.3999,3641.0000,3641.8000,3642.3999,3643.0000,3643.8000,3644.3999,3645.0000,3645.8000,3646.6001,3647.0000,3647.8000,3648.8000,3649.6001,3650.3999,
|
||||||
|
3651.2000,3652.0000,3653.0000,3654.0000,3654.8000,3655.8000,3656.8000,3657.6001,3658.3999,3659.0000,3660.0000,3661.0000,3662.0000,3662.8000,3663.8000,
|
||||||
|
3664.3999,3665.0000,3665.6001,3666.0000,3666.8000,3667.0000,3667.8000,3668.2000,3668.8000,3669.3999,3670.0000,3670.6001,3671.0000,3671.8000,3672.0000,
|
||||||
|
3672.8000,3673.0000,3673.8000,3674.2000,3674.8000,3675.3999,3676.0000,3676.6001,3677.0000,3677.8000,3678.0000,3678.8000,3679.2000,3679.8000,3680.6001,
|
||||||
|
3681.6001,3682.3999,3683.3999,3684.2000,3685.0000,3686.0000,3687.0000,3688.0000,3689.0000,3690.0000,3690.8000,3691.8000,3692.8000,3693.8000,3694.8000,
|
||||||
|
3695.8000,3696.3999,3696.8000,3697.2000,3697.8000,3698.0000,3698.8000,3699.0000,3699.8000,3700.0000,3700.8000,3701.0000,3701.6001,3702.0000,3702.3999,
|
||||||
|
3702.8000,3703.3999,3703.8000,3704.2000,3704.8000,3705.0000,3705.8000,3706.0000,3706.8000,3707.0000,3707.8000,3708.0000,3708.6001,3709.0000,3709.3999,
|
||||||
|
3710.0000,3710.3999,3710.8000,3711.2000,3711.8000,3712.2000,3713.3999,3714.6001,3715.8000,3716.8000,3718.0000,3719.0000,3720.0000,3721.2000,3722.3999,
|
||||||
|
3723.6001,3724.8000,3725.8000,3726.8000,3728.0000,3728.6001,3729.0000,3729.2000,3729.8000,3730.0000,3730.6001,3730.8000,3731.2000,3731.8000,3732.0000,
|
||||||
|
3732.6001,3732.8000,3733.0000,3733.8000,3734.0000,3734.3999,3734.8000,3735.0000,3735.8000,3736.0000,3736.3999,3736.8000,3737.0000,3737.8000,3738.0000,
|
||||||
|
3738.3999,3738.8000,3739.0000,3739.8000,3740.0000,3740.2000,3740.8000,3741.0000,3741.6001,3742.0000,3742.2000,3742.8000,3743.0000,3743.6001,3744.0000,
|
||||||
|
3744.8000,3746.0000,3747.8000,3749.2000,3751.0000,3752.6001,3754.0000,3755.8000,3757.0000,3758.8000,3760.2000,3761.0000,3761.8000,3762.6001,3763.2000,
|
||||||
|
3764.0000,3764.8000,3765.6001,3766.2000,3767.0000,3767.8000,3768.6001,3769.0000,3770.0000,3770.8000,3771.6001,3772.0000,3773.0000,3773.8000,3774.6001,
|
||||||
|
3775.0000,3776.0000,3776.8000,3777.0000,3777.8000,3778.2000,3778.8000,3779.3999,3780.0000,3780.6001,3781.0000,3781.8000,3782.0000,3782.8000,3783.2000,
|
||||||
|
3783.8000,3784.6001,3785.0000,3785.8000,3786.0000,3786.8000,3787.2000,3787.8000,3788.3999,3789.0000,3789.6001,3790.0000,3790.8000,3791.0000,3791.8000,
|
||||||
|
3792.2000,3792.8000,3793.3999,3794.0000,3794.6001,3795.0000,3795.6001,3796.0000,3796.8000,3797.0000,3797.8000,3798.0000,3798.8000,3799.2000,3799.8000,
|
||||||
|
3800.2000,3800.8000,3801.3999,3802.0000,3802.6001,3803.0000,3803.8000,3804.0000,3804.8000,3805.0000,3805.8000,3806.0000,3806.8000,3807.2000,3807.8000,
|
||||||
|
3808.3999,3809.0000,3809.8000,3810.2000,3810.8000,3811.6001,3812.0000,3812.8000,3813.3999,3814.0000,3814.8000,3815.0000,3815.8000,3816.6001,3817.0000,
|
||||||
|
3817.8000,3818.3999,3819.0000,3819.8000,3820.0000,3820.8000,3821.6001,3822.0000,3822.8000,3823.2000,3824.0000,3825.0000,3826.8000,3828.0000,3829.6001,
|
||||||
|
3831.0000,3832.6001,3834.0000,3835.3999,3836.8000,3838.3999,3839.8000,3840.8000,3841.0000,3841.8000,3842.0000,3842.8000,3843.0000,3843.8000,3844.0000,
|
||||||
|
3844.8000,3845.2000,3845.8000,3846.2000,3846.8000,3847.3999,3847.8000,3848.3999,3849.0000,3849.3999,3850.0000,3850.6001,3851.0000,3851.6001,3852.0000,
|
||||||
|
3852.8000,3853.0000,3853.8000,3854.0000,3854.8000,3855.0000,3855.8000,3856.0000,3856.8000,3857.0000,3857.8000,3858.0000,3858.8000,3859.0000,3859.6001,
|
||||||
|
3860.0000,3860.6001,3861.0000,3861.3999,3862.0000,3862.3999,3862.8000,3863.2000,3863.8000,3864.2000,3864.8000,3865.2000,3865.8000,3866.0000,3866.8000,
|
||||||
|
3867.0000,3867.8000,3868.0000,3868.8000,3869.0000,3869.6001,3870.0000,3870.6001,3871.0000,3871.3999,3872.0000,3872.6001,3873.0000,3873.8000,3874.6001,
|
||||||
|
3875.0000,3875.8000,3876.6001,3877.0000,3877.8000,3878.6001,3879.0000,3879.8000,3880.6001,3881.0000,3881.8000,3882.6001,3883.0000,3883.8000,3884.6001,
|
||||||
|
3885.0000,3885.8000,3886.6001,3887.0000,3887.8000,3888.6001,3889.0000,3889.8000,3890.2000,3890.8000,3891.3999,3892.0000,3892.8000,3893.0000,3893.8000,
|
||||||
|
3894.3999,3895.0000,3895.8000,3896.0000,3896.8000,3897.3999,3898.0000,3898.8000,3899.0000,3899.8000,3900.3999,3901.0000,3901.6001,3902.0000,3902.8000,
|
||||||
|
3903.2000,3904.0000,3904.6001,3905.0000,3905.8000,3906.0000,3906.8000,3907.2000,3908.0000,3908.6001,3909.0000,3909.8000,3910.0000,3910.8000,3911.2000,
|
||||||
|
3912.0000,3912.6001,3913.0000,3913.8000,3914.0000,3914.8000,3915.2000,3915.8000,3916.6001,3917.0000,3917.8000,3918.0000,3918.8000,3919.2000,3919.8000,
|
||||||
|
3920.6001,3921.0000,3921.6001,3922.0000,3922.8000,3923.0000,3923.8000,3924.2000,3924.8000,3925.3999,3926.0000,3926.6001,3927.0000,3927.8000,3928.0000,
|
||||||
|
3928.8000,3929.0000,3929.8000,3930.2000,3930.8000,3931.3999,3932.0000,3932.6001,3933.0000,3933.8000,3934.0000,3934.8000,3935.0000,3935.8000,3936.2000,
|
||||||
|
3937.0000,3937.8000,3938.2000,3939.0000,3939.8000,3940.0000,3940.8000,3941.6001,3942.0000,3942.8000,3943.6001,3944.0000,3944.8000,3945.3999,3946.0000,
|
||||||
|
3946.8000,3947.3999,3948.0000,3948.8000,3949.3999,3950.0000,3950.8000,3951.2000,3952.0000,3952.8000,3953.2000,3954.0000,3954.8000,3955.2000,3956.0000,
|
||||||
|
3956.8000,3957.2000,3958.0000,3958.8000,3959.2000,3960.0000,3960.8000,3961.2000,3962.0000,3962.8000,3963.3999,3964.0000,3964.8000,3965.3999,3966.0000,
|
||||||
|
3966.8000,3967.3999,3968.0000,3968.8000,3969.2000,3969.8000,3970.6001,3971.0000,3971.8000,3972.2000,3973.0000,3973.6001,3974.0000,3974.8000,3975.3999,
|
||||||
|
3976.0000,3976.8000,3977.0000,3977.8000,3978.3999,3979.0000,3979.8000,3980.0000,3980.8000,3981.3999,3982.0000,3982.8000,3983.2000,3983.8000,3984.6001,
|
||||||
|
3985.0000,3986.0000,3986.8000,3987.3999,3988.0000,3988.8000,3989.6001,3990.0000,3991.0000,3991.8000,3992.3999,3993.0000,3993.8000,3994.6001,3995.0000,
|
||||||
|
3996.0000,3996.8000,3997.3999,3998.0000,3998.8000,3999.6001,4000.0000,4002.6001,4004.8000,4007.0000,4009.3999,4011.8000,4014.0000,4016.2000,4026.80
|
||||||
|
};
|
||||||
166
ESP32_AD_Wandler/ESP32_AD_Wandler.ino
Normal file
166
ESP32_AD_Wandler/ESP32_AD_Wandler.ino
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
|
||||||
|
#include <WiFi.h>
|
||||||
|
|
||||||
|
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"
|
||||||
|
|
||||||
|
// jfs Wemos lolin32
|
||||||
|
// jfs Heltec WiFi kit 32 (weisses Board)
|
||||||
|
#define HELTEC
|
||||||
|
#define DEBUG
|
||||||
|
|
||||||
|
// Initialize the OLED display using Wire library
|
||||||
|
#ifdef HELTEC
|
||||||
|
SSD1306 display(0x3c, 4, 15);
|
||||||
|
#else
|
||||||
|
SSD1306 display(0x3c, 5, 4);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define MSG 50 // Maximale Länge der Nachricht
|
||||||
|
|
||||||
|
//WiFiServer server(6969); // Server hört auf Port 8088
|
||||||
|
const char* server = "192.168.2.61"; // IP-Adresse des Node-RED-Servers
|
||||||
|
const int port = 6969; // Port
|
||||||
|
unsigned long previousMillis = 0; // Letzter Update-Zeitstempel
|
||||||
|
const long interval = 1000; // Sende-Intervall in ms
|
||||||
|
|
||||||
|
//// WIFI
|
||||||
|
const int mxSize=4;
|
||||||
|
String ssids[mxSize] ={"GAST","pipanet","FRITZ!Box Gastzugang","WLAN-DE8245"};
|
||||||
|
String ssidp[mxSize] = {"passatvr6","passatvr6","praxis123","4955065570896956"};
|
||||||
|
boolean conok =false;
|
||||||
|
|
||||||
|
void netfound(int i){
|
||||||
|
display.clear();
|
||||||
|
display.setColor(BLACK);
|
||||||
|
display.fillRect(0, 0, 128, 10);
|
||||||
|
display.setColor(WHITE);
|
||||||
|
display.drawString(0,0,String(i));
|
||||||
|
display.drawString(20,0,"networks found");
|
||||||
|
display.display();
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean init_wifi(){
|
||||||
|
boolean ok = false;
|
||||||
|
WiFi.mode(WIFI_STA);
|
||||||
|
WiFi.disconnect();
|
||||||
|
delay(100);
|
||||||
|
int n = WiFi.scanNetworks();
|
||||||
|
Serial.println("scan done");
|
||||||
|
if (n == 0) {
|
||||||
|
Serial.println("no networks found");
|
||||||
|
netfound(0);
|
||||||
|
} else {
|
||||||
|
Serial.print(n);
|
||||||
|
Serial.println(" networks found");
|
||||||
|
netfound(n);
|
||||||
|
for (int i = 0; i < n; ++i) {
|
||||||
|
for (int p=0;p<mxSize;p++){
|
||||||
|
if (WiFi.SSID(i).equals(ssids[p])){
|
||||||
|
String pp = ssidp[p];
|
||||||
|
String ss = WiFi.SSID(i);
|
||||||
|
WiFi.begin(ss.c_str(), pp.c_str());
|
||||||
|
i=n;
|
||||||
|
ok = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ok;
|
||||||
|
}
|
||||||
|
///// WIFI
|
||||||
|
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
// test
|
||||||
|
adcAttachPin(37);
|
||||||
|
analogSetClockDiv(1); // 1338mS
|
||||||
|
analogSetPinAttenuation(13,ADC_0db);
|
||||||
|
|
||||||
|
// put your setup code here, to run once:
|
||||||
|
#ifdef HELTEC
|
||||||
|
pinMode(16,OUTPUT); digitalWrite(16, LOW); delay(50); digitalWrite(16, HIGH);
|
||||||
|
#endif
|
||||||
|
Serial.begin(115200);
|
||||||
|
display.init();
|
||||||
|
display.flipScreenVertically();
|
||||||
|
display.clear();
|
||||||
|
display.drawString(0, 0, "Starting...");
|
||||||
|
display.display();
|
||||||
|
while (!init_wifi()){
|
||||||
|
delay(200);
|
||||||
|
}
|
||||||
|
display.drawString(0, 10, "Connecting to WiFi...");
|
||||||
|
display.display();
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
delay(500);
|
||||||
|
Serial.print(".");
|
||||||
|
}
|
||||||
|
display.drawString(0, 20, "\nWiFi connected, IP address: ");
|
||||||
|
display.drawString(0, 30, WiFi.localIP().toString());
|
||||||
|
//server.begin(); // server starten
|
||||||
|
display.display();
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
//String msg = "";
|
||||||
|
// Nachricht// Auf einen neuen Client warten
|
||||||
|
//WiFiClient client1 = serverin.available();
|
||||||
|
//uint8_t data[MSG];
|
||||||
|
//if (client1) {
|
||||||
|
//Serial.println("New client");
|
||||||
|
// Prüfen, ob Client verbunden
|
||||||
|
// while (client1.connected()) {
|
||||||
|
// if (client1.available()) {
|
||||||
|
// int len = client1.read(data, MSG);
|
||||||
|
// if (len < MSG) data[len] = '\0';
|
||||||
|
// else data[MSG] = '\0';
|
||||||
|
// Serial.print("Clients message: ");
|
||||||
|
// msg = (char*)data;
|
||||||
|
// Serial.println(msg);
|
||||||
|
// client1.stop();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
unsigned long currentMillis = millis();
|
||||||
|
if (currentMillis - previousMillis >= interval) {
|
||||||
|
previousMillis = currentMillis;
|
||||||
|
Serial.print("Connecting to ");
|
||||||
|
Serial.println(server);
|
||||||
|
WiFiClient client; // Für TCP-Connection
|
||||||
|
if (!client.connect(server, port)) {
|
||||||
|
Serial.println("Connection failed");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
int analogValue = analogRead(36);// Messwerterfassung
|
||||||
|
Serial.println(analogValue);
|
||||||
|
client.println(analogValue); // Sende Daten zum Server
|
||||||
|
client.stop();// Schließe TCP-Verbindung
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
double volt2 = ReadVoltage(36)*127000/27000;
|
||||||
|
double volt1 = ReadVoltage0dB(37);
|
||||||
|
Serial.print(volt2,1);
|
||||||
|
Serial.print(" ");
|
||||||
|
Serial.println(volt1);
|
||||||
|
display.clear();
|
||||||
|
display.drawString(0,20,"Volt 1 "+String(volt1));
|
||||||
|
display.drawString(0,30,"Volt 2 "+String(volt2));
|
||||||
|
display.display();
|
||||||
|
delay(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// test
|
||||||
|
double ReadVoltage0dB(byte pin){
|
||||||
|
double reading = analogRead(pin); // Reference voltage is 3v3 so maximum reading is 3v3 = 4095 in range 0 to 4095
|
||||||
|
if(reading < 1 || reading > 4095) return 0;
|
||||||
|
return reading/4095;
|
||||||
|
}
|
||||||
|
double ReadVoltage(byte pin){
|
||||||
|
double reading = analogRead(pin); // Reference voltage is 3v3 so maximum reading is 3v3 = 4095 in range 0 to 4095
|
||||||
|
if(reading < 1 || reading > 4095) return 0;
|
||||||
|
// return -0.000000000009824 * pow(reading,3) + 0.000000016557283 * pow(reading,2) + 0.000854596860691 * reading + 0.065440348345433;
|
||||||
|
return -0.000000000000016 * pow(reading,4) + 0.000000000118171 * pow(reading,3)- 0.000000301211691 * pow(reading,2)+ 0.001109019271794 * reading + 0.034143524634089;
|
||||||
|
} // Added an improved polynomial, use either, comment out as required
|
||||||
174
ESP32_AD_mqtt/ESP32_AD_mqtt.ino
Normal file
174
ESP32_AD_mqtt/ESP32_AD_mqtt.ino
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
|
||||||
|
#include <WiFi.h>
|
||||||
|
#include <PubSubClient.h>
|
||||||
|
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"
|
||||||
|
|
||||||
|
// jfs Wemos lolin32
|
||||||
|
// jfs Heltec WiFi kit 32 (weisses Board)
|
||||||
|
#define HELTEC
|
||||||
|
#define DEBUG
|
||||||
|
|
||||||
|
// Initialize the OLED display using Wire library
|
||||||
|
#ifdef HELTEC
|
||||||
|
SSD1306 display(0x3c, 4, 15);
|
||||||
|
#else
|
||||||
|
SSD1306 display(0x3c, 5, 4);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
const char* mqttServer = "192.168.2.71";
|
||||||
|
const int mqttPort = 1883;
|
||||||
|
const char* clientID = "esp_32_ad_wandler_1";
|
||||||
|
const char* channelName = "/ESP_32_AD/";
|
||||||
|
|
||||||
|
WiFiClient MQTTclient;
|
||||||
|
PubSubClient client(MQTTclient);
|
||||||
|
|
||||||
|
void callback(char* topic, byte* payload, unsigned int length) {
|
||||||
|
String payload_buff;
|
||||||
|
for (int i=0;i<length;i++) {
|
||||||
|
payload_buff = payload_buff+String((char)payload[i]);
|
||||||
|
}
|
||||||
|
Serial.println(payload_buff); // Print out messages.
|
||||||
|
}
|
||||||
|
long lastReconnectAttempt = 0;
|
||||||
|
|
||||||
|
boolean reconnect() {
|
||||||
|
if (client.connect(clientID)) {
|
||||||
|
client.subscribe(channelName); // Subscribe to channel.
|
||||||
|
}
|
||||||
|
return client.connected();
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned long previousMillis = 0; // Letzter Update-Zeitstempel
|
||||||
|
const long interval = 1000; // Sende-Intervall in ms
|
||||||
|
|
||||||
|
//// WIFI
|
||||||
|
const int mxSize=4;
|
||||||
|
String ssids[mxSize] ={"GAST","pipanet","FRITZ!Box Gastzugang","WLAN-DE8245"};
|
||||||
|
String ssidp[mxSize] = {"passatvr6","passatvr6","praxis123","4955065570896956"};
|
||||||
|
boolean conok =false;
|
||||||
|
|
||||||
|
void netfound(int i){
|
||||||
|
display.clear();
|
||||||
|
display.setColor(BLACK);
|
||||||
|
display.fillRect(0, 0, 128, 10);
|
||||||
|
display.setColor(WHITE);
|
||||||
|
display.drawString(0,0,String(i));
|
||||||
|
display.drawString(20,0,"networks found");
|
||||||
|
display.display();
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean init_wifi(){
|
||||||
|
boolean ok = false;
|
||||||
|
WiFi.mode(WIFI_STA);
|
||||||
|
WiFi.disconnect();
|
||||||
|
delay(100);
|
||||||
|
int n = WiFi.scanNetworks();
|
||||||
|
Serial.println("scan done");
|
||||||
|
if (n == 0) {
|
||||||
|
Serial.println("no networks found");
|
||||||
|
netfound(0);
|
||||||
|
} else {
|
||||||
|
Serial.print(n);
|
||||||
|
Serial.println(" networks found");
|
||||||
|
netfound(n);
|
||||||
|
for (int i = 0; i < n; ++i) {
|
||||||
|
for (int p=0;p<mxSize;p++){
|
||||||
|
if (WiFi.SSID(i).equals(ssids[p])){
|
||||||
|
String pp = ssidp[p];
|
||||||
|
String ss = WiFi.SSID(i);
|
||||||
|
WiFi.begin(ss.c_str(), pp.c_str());
|
||||||
|
i=n;
|
||||||
|
ok = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ok;
|
||||||
|
}
|
||||||
|
///// WIFI
|
||||||
|
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
// test
|
||||||
|
adcAttachPin(37);
|
||||||
|
analogSetClockDiv(1); // 1338mS
|
||||||
|
analogSetPinAttenuation(37,ADC_0db);
|
||||||
|
|
||||||
|
// put your setup code here, to run once:
|
||||||
|
#ifdef HELTEC
|
||||||
|
pinMode(16,OUTPUT); digitalWrite(16, LOW); delay(50); digitalWrite(16, HIGH);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Serial.begin(115200);
|
||||||
|
display.init();
|
||||||
|
display.flipScreenVertically();
|
||||||
|
display.clear();
|
||||||
|
display.drawString(0, 0, "Starting...");
|
||||||
|
display.display();
|
||||||
|
while (!init_wifi()){
|
||||||
|
delay(200);
|
||||||
|
}
|
||||||
|
display.drawString(0, 10, "Connecting to WiFi...");
|
||||||
|
display.display();
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
delay(500);
|
||||||
|
Serial.print(".");
|
||||||
|
}
|
||||||
|
display.drawString(0, 20, "\nWiFi connected, IP address: ");
|
||||||
|
display.drawString(0, 30, WiFi.localIP().toString());
|
||||||
|
client.setServer(mqttServer, mqttPort); // Connect to PubNub.
|
||||||
|
client.setCallback(callback);
|
||||||
|
lastReconnectAttempt = 0;
|
||||||
|
display.display();
|
||||||
|
display.init();
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
if (!client.connected()) {
|
||||||
|
long now = millis();
|
||||||
|
if (now - lastReconnectAttempt > 5000) { // Try to reconnect.
|
||||||
|
lastReconnectAttempt = now;
|
||||||
|
if (reconnect()) { // Attempt to reconnect.
|
||||||
|
lastReconnectAttempt = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else { // Connected.
|
||||||
|
client.loop();
|
||||||
|
publishit(); // Publish message.
|
||||||
|
delay(100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void publishit() {
|
||||||
|
char buffer[10];
|
||||||
|
double volt2 = ReadVoltage(36)*127000/27000;
|
||||||
|
double volt1 = ReadVoltage0dB(37);
|
||||||
|
//Serial.print(volt2,1);
|
||||||
|
//Serial.print(" ");
|
||||||
|
//Serial.println(volt1);
|
||||||
|
dtostrf(volt1, 6, 2, buffer);
|
||||||
|
client.publish("/ESP_32_AD/V1",buffer); // Publish message.
|
||||||
|
dtostrf(volt2, 6, 2, buffer);
|
||||||
|
client.publish("/ESP_32_AD/V2",buffer); // Publish message.
|
||||||
|
display.clear();
|
||||||
|
display.drawString(0,20,"Volt 1 "+String(volt1));
|
||||||
|
display.drawString(0,30,"Volt 2 "+String(volt2));
|
||||||
|
display.display();
|
||||||
|
//delay(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
// test
|
||||||
|
double ReadVoltage0dB(byte pin){
|
||||||
|
double reading = analogRead(pin); // Reference voltage is 3v3 so maximum reading is 3v3 = 4095 in range 0 to 4095
|
||||||
|
if(reading < 1 || reading > 4095) return 0;
|
||||||
|
return reading/4095;
|
||||||
|
}
|
||||||
|
double ReadVoltage(byte pin){
|
||||||
|
double reading = analogRead(pin); // Reference voltage is 3v3 so maximum reading is 3v3 = 4095 in range 0 to 4095
|
||||||
|
if(reading < 1 || reading > 4095) return 0;
|
||||||
|
// return -0.000000000009824 * pow(reading,3) + 0.000000016557283 * pow(reading,2) + 0.000854596860691 * reading + 0.065440348345433;
|
||||||
|
return -0.000000000000016 * pow(reading,4) + 0.000000000118171 * pow(reading,3)- 0.000000301211691 * pow(reading,2)+ 0.001109019271794 * reading + 0.034143524634089;
|
||||||
|
} // Added an improved polynomial, use either, comment out as required
|
||||||
150
ESP32_CameraWebServer/ESP32_CameraWebServer.ino
Normal file
150
ESP32_CameraWebServer/ESP32_CameraWebServer.ino
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
#include "esp_camera.h"
|
||||||
|
#include <WiFi.h>
|
||||||
|
|
||||||
|
//
|
||||||
|
// WARNING!!! Make sure that you have either selected ESP32 Wrover Module,
|
||||||
|
// or another board which has PSRAM enabled
|
||||||
|
//
|
||||||
|
|
||||||
|
// Select camera model
|
||||||
|
//#define CAMERA_MODEL_WROVER_KIT
|
||||||
|
//#define CAMERA_MODEL_ESP_EYE
|
||||||
|
//#define CAMERA_MODEL_M5STACK_PSRAM
|
||||||
|
//#define CAMERA_MODEL_M5STACK_WIDE
|
||||||
|
#define CAMERA_MODEL_AI_THINKER
|
||||||
|
|
||||||
|
#include "camera_pins.h"
|
||||||
|
|
||||||
|
const int mxSize=4;
|
||||||
|
String ssids[mxSize] ={"GAST","pipanet","FRITZ!Box Gastzugang","WLAN-DE8245"};
|
||||||
|
String ssidp[mxSize] = {"passatvr6","passatvr6","praxis123","4955065570896956"};
|
||||||
|
boolean conok =false;
|
||||||
|
|
||||||
|
|
||||||
|
void startCameraServer();
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
Serial.begin(115200);
|
||||||
|
Serial.setDebugOutput(true);
|
||||||
|
Serial.println();
|
||||||
|
|
||||||
|
camera_config_t config;
|
||||||
|
config.ledc_channel = LEDC_CHANNEL_0;
|
||||||
|
config.ledc_timer = LEDC_TIMER_0;
|
||||||
|
config.pin_d0 = Y2_GPIO_NUM;
|
||||||
|
config.pin_d1 = Y3_GPIO_NUM;
|
||||||
|
config.pin_d2 = Y4_GPIO_NUM;
|
||||||
|
config.pin_d3 = Y5_GPIO_NUM;
|
||||||
|
config.pin_d4 = Y6_GPIO_NUM;
|
||||||
|
config.pin_d5 = Y7_GPIO_NUM;
|
||||||
|
config.pin_d6 = Y8_GPIO_NUM;
|
||||||
|
config.pin_d7 = Y9_GPIO_NUM;
|
||||||
|
config.pin_xclk = XCLK_GPIO_NUM;
|
||||||
|
config.pin_pclk = PCLK_GPIO_NUM;
|
||||||
|
config.pin_vsync = VSYNC_GPIO_NUM;
|
||||||
|
config.pin_href = HREF_GPIO_NUM;
|
||||||
|
config.pin_sscb_sda = SIOD_GPIO_NUM;
|
||||||
|
config.pin_sscb_scl = SIOC_GPIO_NUM;
|
||||||
|
config.pin_pwdn = PWDN_GPIO_NUM;
|
||||||
|
config.pin_reset = RESET_GPIO_NUM;
|
||||||
|
config.xclk_freq_hz = 20000000;
|
||||||
|
config.pixel_format = PIXFORMAT_JPEG;
|
||||||
|
//init with high specs to pre-allocate larger buffers
|
||||||
|
if(psramFound()){
|
||||||
|
config.frame_size = FRAMESIZE_UXGA;
|
||||||
|
config.jpeg_quality = 10;
|
||||||
|
config.fb_count = 2;
|
||||||
|
} else {
|
||||||
|
config.frame_size = FRAMESIZE_SVGA;
|
||||||
|
config.jpeg_quality = 12;
|
||||||
|
config.fb_count = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if defined(CAMERA_MODEL_ESP_EYE)
|
||||||
|
pinMode(13, INPUT_PULLUP);
|
||||||
|
pinMode(14, INPUT_PULLUP);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// camera init
|
||||||
|
esp_err_t err = esp_camera_init(&config);
|
||||||
|
if (err != ESP_OK) {
|
||||||
|
Serial.printf("Camera init failed with error 0x%x", err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor_t * s = esp_camera_sensor_get();
|
||||||
|
//initial sensors are flipped vertically and colors are a bit saturated
|
||||||
|
if (s->id.PID == OV3660_PID) {
|
||||||
|
s->set_vflip(s, 1);//flip it back
|
||||||
|
s->set_brightness(s, 1);//up the blightness just a bit
|
||||||
|
s->set_saturation(s, -2);//lower the saturation
|
||||||
|
}
|
||||||
|
//drop down frame size for higher initial frame rate
|
||||||
|
s->set_framesize(s, FRAMESIZE_QVGA);
|
||||||
|
|
||||||
|
#if defined(CAMERA_MODEL_M5STACK_WIDE)
|
||||||
|
s->set_vflip(s, 1);
|
||||||
|
s->set_hmirror(s, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//WiFi.begin(ssid, password);
|
||||||
|
|
||||||
|
//while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
//delay(500);
|
||||||
|
//Serial.print(".");
|
||||||
|
//}
|
||||||
|
//Serial.println("");
|
||||||
|
//Serial.println("WiFi connected");
|
||||||
|
while (!init_wifi()){
|
||||||
|
delay(200);
|
||||||
|
}
|
||||||
|
//display.drawString(0, 10, "Connecting to WiFi...");
|
||||||
|
//display.display();
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
delay(500);
|
||||||
|
Serial.print(".");
|
||||||
|
}
|
||||||
|
Serial.print("\nWiFi connected, IP address: ");
|
||||||
|
Serial.println( WiFi.localIP().toString());
|
||||||
|
|
||||||
|
startCameraServer();
|
||||||
|
|
||||||
|
Serial.print("Camera Ready! Use 'http://");
|
||||||
|
Serial.print(WiFi.localIP());
|
||||||
|
Serial.println("' to connect");
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
// put your main code here, to run repeatedly:
|
||||||
|
delay(10000);
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean init_wifi(){
|
||||||
|
boolean ok = false;
|
||||||
|
WiFi.mode(WIFI_STA);
|
||||||
|
WiFi.disconnect();
|
||||||
|
delay(100);
|
||||||
|
int n = WiFi.scanNetworks();
|
||||||
|
Serial.println("scan done");
|
||||||
|
if (n == 0) {
|
||||||
|
Serial.println("no networks found");
|
||||||
|
//netfound(0);
|
||||||
|
} else {
|
||||||
|
Serial.print(n);
|
||||||
|
Serial.println(" networks found");
|
||||||
|
//netfound(n);
|
||||||
|
for (int i = 0; i < n; ++i) {
|
||||||
|
for (int p=0;p<mxSize;p++){
|
||||||
|
if (WiFi.SSID(i).equals(ssids[p])){
|
||||||
|
String pp = ssidp[p];
|
||||||
|
String ss = WiFi.SSID(i);
|
||||||
|
WiFi.begin(ss.c_str(), pp.c_str());
|
||||||
|
i=n;
|
||||||
|
ok = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delay(10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ok;
|
||||||
|
}
|
||||||
655
ESP32_CameraWebServer/app_httpd.cpp
Normal file
655
ESP32_CameraWebServer/app_httpd.cpp
Normal file
@ -0,0 +1,655 @@
|
|||||||
|
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
#include "esp_http_server.h"
|
||||||
|
#include "esp_timer.h"
|
||||||
|
#include "esp_camera.h"
|
||||||
|
#include "img_converters.h"
|
||||||
|
#include "camera_index.h"
|
||||||
|
#include "Arduino.h"
|
||||||
|
|
||||||
|
#include "fb_gfx.h"
|
||||||
|
#include "fd_forward.h"
|
||||||
|
//#include "dl_lib.h"
|
||||||
|
#include "fr_forward.h"
|
||||||
|
|
||||||
|
#define ENROLL_CONFIRM_TIMES 5
|
||||||
|
#define FACE_ID_SAVE_NUMBER 7
|
||||||
|
|
||||||
|
#define FACE_COLOR_WHITE 0x00FFFFFF
|
||||||
|
#define FACE_COLOR_BLACK 0x00000000
|
||||||
|
#define FACE_COLOR_RED 0x000000FF
|
||||||
|
#define FACE_COLOR_GREEN 0x0000FF00
|
||||||
|
#define FACE_COLOR_BLUE 0x00FF0000
|
||||||
|
#define FACE_COLOR_YELLOW (FACE_COLOR_RED | FACE_COLOR_GREEN)
|
||||||
|
#define FACE_COLOR_CYAN (FACE_COLOR_BLUE | FACE_COLOR_GREEN)
|
||||||
|
#define FACE_COLOR_PURPLE (FACE_COLOR_BLUE | FACE_COLOR_RED)
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
size_t size; //number of values used for filtering
|
||||||
|
size_t index; //current value index
|
||||||
|
size_t count; //value count
|
||||||
|
int sum;
|
||||||
|
int * values; //array to be filled with values
|
||||||
|
} ra_filter_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
httpd_req_t *req;
|
||||||
|
size_t len;
|
||||||
|
} jpg_chunking_t;
|
||||||
|
|
||||||
|
#define PART_BOUNDARY "123456789000000000000987654321"
|
||||||
|
static const char* _STREAM_CONTENT_TYPE = "multipart/x-mixed-replace;boundary=" PART_BOUNDARY;
|
||||||
|
static const char* _STREAM_BOUNDARY = "\r\n--" PART_BOUNDARY "\r\n";
|
||||||
|
static const char* _STREAM_PART = "Content-Type: image/jpeg\r\nContent-Length: %u\r\n\r\n";
|
||||||
|
|
||||||
|
static ra_filter_t ra_filter;
|
||||||
|
httpd_handle_t stream_httpd = NULL;
|
||||||
|
httpd_handle_t camera_httpd = NULL;
|
||||||
|
|
||||||
|
static mtmn_config_t mtmn_config = {0};
|
||||||
|
static int8_t detection_enabled = 0;
|
||||||
|
static int8_t recognition_enabled = 0;
|
||||||
|
static int8_t is_enrolling = 0;
|
||||||
|
static face_id_list id_list = {0};
|
||||||
|
|
||||||
|
static ra_filter_t * ra_filter_init(ra_filter_t * filter, size_t sample_size){
|
||||||
|
memset(filter, 0, sizeof(ra_filter_t));
|
||||||
|
|
||||||
|
filter->values = (int *)malloc(sample_size * sizeof(int));
|
||||||
|
if(!filter->values){
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
memset(filter->values, 0, sample_size * sizeof(int));
|
||||||
|
|
||||||
|
filter->size = sample_size;
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ra_filter_run(ra_filter_t * filter, int value){
|
||||||
|
if(!filter->values){
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
filter->sum -= filter->values[filter->index];
|
||||||
|
filter->values[filter->index] = value;
|
||||||
|
filter->sum += filter->values[filter->index];
|
||||||
|
filter->index++;
|
||||||
|
filter->index = filter->index % filter->size;
|
||||||
|
if (filter->count < filter->size) {
|
||||||
|
filter->count++;
|
||||||
|
}
|
||||||
|
return filter->sum / filter->count;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void rgb_print(dl_matrix3du_t *image_matrix, uint32_t color, const char * str){
|
||||||
|
fb_data_t fb;
|
||||||
|
fb.width = image_matrix->w;
|
||||||
|
fb.height = image_matrix->h;
|
||||||
|
fb.data = image_matrix->item;
|
||||||
|
fb.bytes_per_pixel = 3;
|
||||||
|
fb.format = FB_BGR888;
|
||||||
|
fb_gfx_print(&fb, (fb.width - (strlen(str) * 14)) / 2, 10, color, str);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int rgb_printf(dl_matrix3du_t *image_matrix, uint32_t color, const char *format, ...){
|
||||||
|
char loc_buf[64];
|
||||||
|
char * temp = loc_buf;
|
||||||
|
int len;
|
||||||
|
va_list arg;
|
||||||
|
va_list copy;
|
||||||
|
va_start(arg, format);
|
||||||
|
va_copy(copy, arg);
|
||||||
|
len = vsnprintf(loc_buf, sizeof(loc_buf), format, arg);
|
||||||
|
va_end(copy);
|
||||||
|
if(len >= sizeof(loc_buf)){
|
||||||
|
temp = (char*)malloc(len+1);
|
||||||
|
if(temp == NULL) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
vsnprintf(temp, len+1, format, arg);
|
||||||
|
va_end(arg);
|
||||||
|
rgb_print(image_matrix, color, temp);
|
||||||
|
if(len > 64){
|
||||||
|
free(temp);
|
||||||
|
}
|
||||||
|
return len;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void draw_face_boxes(dl_matrix3du_t *image_matrix, box_array_t *boxes, int face_id){
|
||||||
|
int x, y, w, h, i;
|
||||||
|
uint32_t color = FACE_COLOR_YELLOW;
|
||||||
|
if(face_id < 0){
|
||||||
|
color = FACE_COLOR_RED;
|
||||||
|
} else if(face_id > 0){
|
||||||
|
color = FACE_COLOR_GREEN;
|
||||||
|
}
|
||||||
|
fb_data_t fb;
|
||||||
|
fb.width = image_matrix->w;
|
||||||
|
fb.height = image_matrix->h;
|
||||||
|
fb.data = image_matrix->item;
|
||||||
|
fb.bytes_per_pixel = 3;
|
||||||
|
fb.format = FB_BGR888;
|
||||||
|
for (i = 0; i < boxes->len; i++){
|
||||||
|
// rectangle box
|
||||||
|
x = (int)boxes->box[i].box_p[0];
|
||||||
|
y = (int)boxes->box[i].box_p[1];
|
||||||
|
w = (int)boxes->box[i].box_p[2] - x + 1;
|
||||||
|
h = (int)boxes->box[i].box_p[3] - y + 1;
|
||||||
|
fb_gfx_drawFastHLine(&fb, x, y, w, color);
|
||||||
|
fb_gfx_drawFastHLine(&fb, x, y+h-1, w, color);
|
||||||
|
fb_gfx_drawFastVLine(&fb, x, y, h, color);
|
||||||
|
fb_gfx_drawFastVLine(&fb, x+w-1, y, h, color);
|
||||||
|
#if 0
|
||||||
|
// landmark
|
||||||
|
int x0, y0, j;
|
||||||
|
for (j = 0; j < 10; j+=2) {
|
||||||
|
x0 = (int)boxes->landmark[i].landmark_p[j];
|
||||||
|
y0 = (int)boxes->landmark[i].landmark_p[j+1];
|
||||||
|
fb_gfx_fillRect(&fb, x0, y0, 3, 3, color);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static int run_face_recognition(dl_matrix3du_t *image_matrix, box_array_t *net_boxes){
|
||||||
|
dl_matrix3du_t *aligned_face = NULL;
|
||||||
|
int matched_id = 0;
|
||||||
|
|
||||||
|
aligned_face = dl_matrix3du_alloc(1, FACE_WIDTH, FACE_HEIGHT, 3);
|
||||||
|
if(!aligned_face){
|
||||||
|
Serial.println("Could not allocate face recognition buffer");
|
||||||
|
return matched_id;
|
||||||
|
}
|
||||||
|
if (align_face(net_boxes, image_matrix, aligned_face) == ESP_OK){
|
||||||
|
if (is_enrolling == 1){
|
||||||
|
int8_t left_sample_face = enroll_face(&id_list, aligned_face);
|
||||||
|
|
||||||
|
if(left_sample_face == (ENROLL_CONFIRM_TIMES - 1)){
|
||||||
|
Serial.printf("Enrolling Face ID: %d\n", id_list.tail);
|
||||||
|
}
|
||||||
|
Serial.printf("Enrolling Face ID: %d sample %d\n", id_list.tail, ENROLL_CONFIRM_TIMES - left_sample_face);
|
||||||
|
rgb_printf(image_matrix, FACE_COLOR_CYAN, "ID[%u] Sample[%u]", id_list.tail, ENROLL_CONFIRM_TIMES - left_sample_face);
|
||||||
|
if (left_sample_face == 0){
|
||||||
|
is_enrolling = 0;
|
||||||
|
Serial.printf("Enrolled Face ID: %d\n", id_list.tail);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
matched_id = recognize_face(&id_list, aligned_face);
|
||||||
|
if (matched_id >= 0) {
|
||||||
|
Serial.printf("Match Face ID: %u\n", matched_id);
|
||||||
|
rgb_printf(image_matrix, FACE_COLOR_GREEN, "Hello Subject %u", matched_id);
|
||||||
|
} else {
|
||||||
|
Serial.println("No Match Found");
|
||||||
|
rgb_print(image_matrix, FACE_COLOR_RED, "Intruder Alert!");
|
||||||
|
matched_id = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Serial.println("Face Not Aligned");
|
||||||
|
//rgb_print(image_matrix, FACE_COLOR_YELLOW, "Human Detected");
|
||||||
|
}
|
||||||
|
|
||||||
|
dl_matrix3du_free(aligned_face);
|
||||||
|
return matched_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
static size_t jpg_encode_stream(void * arg, size_t index, const void* data, size_t len){
|
||||||
|
jpg_chunking_t *j = (jpg_chunking_t *)arg;
|
||||||
|
if(!index){
|
||||||
|
j->len = 0;
|
||||||
|
}
|
||||||
|
if(httpd_resp_send_chunk(j->req, (const char *)data, len) != ESP_OK){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
j->len += len;
|
||||||
|
return len;
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t capture_handler(httpd_req_t *req){
|
||||||
|
camera_fb_t * fb = NULL;
|
||||||
|
esp_err_t res = ESP_OK;
|
||||||
|
int64_t fr_start = esp_timer_get_time();
|
||||||
|
|
||||||
|
fb = esp_camera_fb_get();
|
||||||
|
if (!fb) {
|
||||||
|
Serial.println("Camera capture failed");
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
httpd_resp_set_type(req, "image/jpeg");
|
||||||
|
httpd_resp_set_hdr(req, "Content-Disposition", "inline; filename=capture.jpg");
|
||||||
|
|
||||||
|
size_t out_len, out_width, out_height;
|
||||||
|
uint8_t * out_buf;
|
||||||
|
bool s;
|
||||||
|
bool detected = false;
|
||||||
|
int face_id = 0;
|
||||||
|
if(!detection_enabled || fb->width > 400){
|
||||||
|
size_t fb_len = 0;
|
||||||
|
if(fb->format == PIXFORMAT_JPEG){
|
||||||
|
fb_len = fb->len;
|
||||||
|
res = httpd_resp_send(req, (const char *)fb->buf, fb->len);
|
||||||
|
} else {
|
||||||
|
jpg_chunking_t jchunk = {req, 0};
|
||||||
|
res = frame2jpg_cb(fb, 80, jpg_encode_stream, &jchunk)?ESP_OK:ESP_FAIL;
|
||||||
|
httpd_resp_send_chunk(req, NULL, 0);
|
||||||
|
fb_len = jchunk.len;
|
||||||
|
}
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
int64_t fr_end = esp_timer_get_time();
|
||||||
|
Serial.printf("JPG: %uB %ums\n", (uint32_t)(fb_len), (uint32_t)((fr_end - fr_start)/1000));
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
dl_matrix3du_t *image_matrix = dl_matrix3du_alloc(1, fb->width, fb->height, 3);
|
||||||
|
if (!image_matrix) {
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
Serial.println("dl_matrix3du_alloc failed");
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
out_buf = image_matrix->item;
|
||||||
|
out_len = fb->width * fb->height * 3;
|
||||||
|
out_width = fb->width;
|
||||||
|
out_height = fb->height;
|
||||||
|
|
||||||
|
s = fmt2rgb888(fb->buf, fb->len, fb->format, out_buf);
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
if(!s){
|
||||||
|
dl_matrix3du_free(image_matrix);
|
||||||
|
Serial.println("to rgb888 failed");
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
box_array_t *net_boxes = face_detect(image_matrix, &mtmn_config);
|
||||||
|
|
||||||
|
if (net_boxes){
|
||||||
|
detected = true;
|
||||||
|
if(recognition_enabled){
|
||||||
|
face_id = run_face_recognition(image_matrix, net_boxes);
|
||||||
|
}
|
||||||
|
draw_face_boxes(image_matrix, net_boxes, face_id);
|
||||||
|
free(net_boxes->box);
|
||||||
|
free(net_boxes->landmark);
|
||||||
|
free(net_boxes);
|
||||||
|
}
|
||||||
|
|
||||||
|
jpg_chunking_t jchunk = {req, 0};
|
||||||
|
s = fmt2jpg_cb(out_buf, out_len, out_width, out_height, PIXFORMAT_RGB888, 90, jpg_encode_stream, &jchunk);
|
||||||
|
dl_matrix3du_free(image_matrix);
|
||||||
|
if(!s){
|
||||||
|
Serial.println("JPEG compression failed");
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
int64_t fr_end = esp_timer_get_time();
|
||||||
|
Serial.printf("FACE: %uB %ums %s%d\n", (uint32_t)(jchunk.len), (uint32_t)((fr_end - fr_start)/1000), detected?"DETECTED ":"", face_id);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t stream_handler(httpd_req_t *req){
|
||||||
|
camera_fb_t * fb = NULL;
|
||||||
|
esp_err_t res = ESP_OK;
|
||||||
|
size_t _jpg_buf_len = 0;
|
||||||
|
uint8_t * _jpg_buf = NULL;
|
||||||
|
char * part_buf[64];
|
||||||
|
dl_matrix3du_t *image_matrix = NULL;
|
||||||
|
bool detected = false;
|
||||||
|
int face_id = 0;
|
||||||
|
int64_t fr_start = 0;
|
||||||
|
int64_t fr_ready = 0;
|
||||||
|
int64_t fr_face = 0;
|
||||||
|
int64_t fr_recognize = 0;
|
||||||
|
int64_t fr_encode = 0;
|
||||||
|
|
||||||
|
static int64_t last_frame = 0;
|
||||||
|
if(!last_frame) {
|
||||||
|
last_frame = esp_timer_get_time();
|
||||||
|
}
|
||||||
|
|
||||||
|
res = httpd_resp_set_type(req, _STREAM_CONTENT_TYPE);
|
||||||
|
if(res != ESP_OK){
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
while(true){
|
||||||
|
detected = false;
|
||||||
|
face_id = 0;
|
||||||
|
fb = esp_camera_fb_get();
|
||||||
|
if (!fb) {
|
||||||
|
Serial.println("Camera capture failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
} else {
|
||||||
|
fr_start = esp_timer_get_time();
|
||||||
|
fr_ready = fr_start;
|
||||||
|
fr_face = fr_start;
|
||||||
|
fr_encode = fr_start;
|
||||||
|
fr_recognize = fr_start;
|
||||||
|
if(!detection_enabled || fb->width > 400){
|
||||||
|
if(fb->format != PIXFORMAT_JPEG){
|
||||||
|
bool jpeg_converted = frame2jpg(fb, 80, &_jpg_buf, &_jpg_buf_len);
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
if(!jpeg_converted){
|
||||||
|
Serial.println("JPEG compression failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_jpg_buf_len = fb->len;
|
||||||
|
_jpg_buf = fb->buf;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
image_matrix = dl_matrix3du_alloc(1, fb->width, fb->height, 3);
|
||||||
|
|
||||||
|
if (!image_matrix) {
|
||||||
|
Serial.println("dl_matrix3du_alloc failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
} else {
|
||||||
|
if(!fmt2rgb888(fb->buf, fb->len, fb->format, image_matrix->item)){
|
||||||
|
Serial.println("fmt2rgb888 failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
} else {
|
||||||
|
fr_ready = esp_timer_get_time();
|
||||||
|
box_array_t *net_boxes = NULL;
|
||||||
|
if(detection_enabled){
|
||||||
|
net_boxes = face_detect(image_matrix, &mtmn_config);
|
||||||
|
}
|
||||||
|
fr_face = esp_timer_get_time();
|
||||||
|
fr_recognize = fr_face;
|
||||||
|
if (net_boxes || fb->format != PIXFORMAT_JPEG){
|
||||||
|
if(net_boxes){
|
||||||
|
detected = true;
|
||||||
|
if(recognition_enabled){
|
||||||
|
face_id = run_face_recognition(image_matrix, net_boxes);
|
||||||
|
}
|
||||||
|
fr_recognize = esp_timer_get_time();
|
||||||
|
draw_face_boxes(image_matrix, net_boxes, face_id);
|
||||||
|
free(net_boxes->box);
|
||||||
|
free(net_boxes->landmark);
|
||||||
|
free(net_boxes);
|
||||||
|
}
|
||||||
|
if(!fmt2jpg(image_matrix->item, fb->width*fb->height*3, fb->width, fb->height, PIXFORMAT_RGB888, 90, &_jpg_buf, &_jpg_buf_len)){
|
||||||
|
Serial.println("fmt2jpg failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
}
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
} else {
|
||||||
|
_jpg_buf = fb->buf;
|
||||||
|
_jpg_buf_len = fb->len;
|
||||||
|
}
|
||||||
|
fr_encode = esp_timer_get_time();
|
||||||
|
}
|
||||||
|
dl_matrix3du_free(image_matrix);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
size_t hlen = snprintf((char *)part_buf, 64, _STREAM_PART, _jpg_buf_len);
|
||||||
|
res = httpd_resp_send_chunk(req, (const char *)part_buf, hlen);
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
res = httpd_resp_send_chunk(req, (const char *)_jpg_buf, _jpg_buf_len);
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY));
|
||||||
|
}
|
||||||
|
if(fb){
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
_jpg_buf = NULL;
|
||||||
|
} else if(_jpg_buf){
|
||||||
|
free(_jpg_buf);
|
||||||
|
_jpg_buf = NULL;
|
||||||
|
}
|
||||||
|
if(res != ESP_OK){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
int64_t fr_end = esp_timer_get_time();
|
||||||
|
|
||||||
|
int64_t ready_time = (fr_ready - fr_start)/1000;
|
||||||
|
int64_t face_time = (fr_face - fr_ready)/1000;
|
||||||
|
int64_t recognize_time = (fr_recognize - fr_face)/1000;
|
||||||
|
int64_t encode_time = (fr_encode - fr_recognize)/1000;
|
||||||
|
int64_t process_time = (fr_encode - fr_start)/1000;
|
||||||
|
|
||||||
|
int64_t frame_time = fr_end - last_frame;
|
||||||
|
last_frame = fr_end;
|
||||||
|
frame_time /= 1000;
|
||||||
|
uint32_t avg_frame_time = ra_filter_run(&ra_filter, frame_time);
|
||||||
|
Serial.printf("MJPG: %uB %ums (%.1ffps), AVG: %ums (%.1ffps), %u+%u+%u+%u=%u %s%d\n",
|
||||||
|
(uint32_t)(_jpg_buf_len),
|
||||||
|
(uint32_t)frame_time, 1000.0 / (uint32_t)frame_time,
|
||||||
|
avg_frame_time, 1000.0 / avg_frame_time,
|
||||||
|
(uint32_t)ready_time, (uint32_t)face_time, (uint32_t)recognize_time, (uint32_t)encode_time, (uint32_t)process_time,
|
||||||
|
(detected)?"DETECTED ":"", face_id
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
last_frame = 0;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t cmd_handler(httpd_req_t *req){
|
||||||
|
char* buf;
|
||||||
|
size_t buf_len;
|
||||||
|
char variable[32] = {0,};
|
||||||
|
char value[32] = {0,};
|
||||||
|
|
||||||
|
buf_len = httpd_req_get_url_query_len(req) + 1;
|
||||||
|
if (buf_len > 1) {
|
||||||
|
buf = (char*)malloc(buf_len);
|
||||||
|
if(!buf){
|
||||||
|
httpd_resp_send_500(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
if (httpd_req_get_url_query_str(req, buf, buf_len) == ESP_OK) {
|
||||||
|
if (httpd_query_key_value(buf, "var", variable, sizeof(variable)) == ESP_OK &&
|
||||||
|
httpd_query_key_value(buf, "val", value, sizeof(value)) == ESP_OK) {
|
||||||
|
} else {
|
||||||
|
free(buf);
|
||||||
|
httpd_resp_send_404(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
free(buf);
|
||||||
|
httpd_resp_send_404(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
free(buf);
|
||||||
|
} else {
|
||||||
|
httpd_resp_send_404(req);
|
||||||
|
return ESP_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
int val = atoi(value);
|
||||||
|
sensor_t * s = esp_camera_sensor_get();
|
||||||
|
int res = 0;
|
||||||
|
|
||||||
|
if(!strcmp(variable, "framesize")) {
|
||||||
|
if(s->pixformat == PIXFORMAT_JPEG) res = s->set_framesize(s, (framesize_t)val);
|
||||||
|
}
|
||||||
|
else if(!strcmp(variable, "quality")) res = s->set_quality(s, val);
|
||||||
|
else if(!strcmp(variable, "contrast")) res = s->set_contrast(s, val);
|
||||||
|
else if(!strcmp(variable, "brightness")) res = s->set_brightness(s, val);
|
||||||
|
else if(!strcmp(variable, "saturation")) res = s->set_saturation(s, val);
|
||||||
|
else if(!strcmp(variable, "gainceiling")) res = s->set_gainceiling(s, (gainceiling_t)val);
|
||||||
|
else if(!strcmp(variable, "colorbar")) res = s->set_colorbar(s, val);
|
||||||
|
else if(!strcmp(variable, "awb")) res = s->set_whitebal(s, val);
|
||||||
|
else if(!strcmp(variable, "agc")) res = s->set_gain_ctrl(s, val);
|
||||||
|
else if(!strcmp(variable, "aec")) res = s->set_exposure_ctrl(s, val);
|
||||||
|
else if(!strcmp(variable, "hmirror")) res = s->set_hmirror(s, val);
|
||||||
|
else if(!strcmp(variable, "vflip")) res = s->set_vflip(s, val);
|
||||||
|
else if(!strcmp(variable, "awb_gain")) res = s->set_awb_gain(s, val);
|
||||||
|
else if(!strcmp(variable, "agc_gain")) res = s->set_agc_gain(s, val);
|
||||||
|
else if(!strcmp(variable, "aec_value")) res = s->set_aec_value(s, val);
|
||||||
|
else if(!strcmp(variable, "aec2")) res = s->set_aec2(s, val);
|
||||||
|
else if(!strcmp(variable, "dcw")) res = s->set_dcw(s, val);
|
||||||
|
else if(!strcmp(variable, "bpc")) res = s->set_bpc(s, val);
|
||||||
|
else if(!strcmp(variable, "wpc")) res = s->set_wpc(s, val);
|
||||||
|
else if(!strcmp(variable, "raw_gma")) res = s->set_raw_gma(s, val);
|
||||||
|
else if(!strcmp(variable, "lenc")) res = s->set_lenc(s, val);
|
||||||
|
else if(!strcmp(variable, "special_effect")) res = s->set_special_effect(s, val);
|
||||||
|
else if(!strcmp(variable, "wb_mode")) res = s->set_wb_mode(s, val);
|
||||||
|
else if(!strcmp(variable, "ae_level")) res = s->set_ae_level(s, val);
|
||||||
|
else if(!strcmp(variable, "face_detect")) {
|
||||||
|
detection_enabled = val;
|
||||||
|
if(!detection_enabled) {
|
||||||
|
recognition_enabled = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(!strcmp(variable, "face_enroll")) is_enrolling = val;
|
||||||
|
else if(!strcmp(variable, "face_recognize")) {
|
||||||
|
recognition_enabled = val;
|
||||||
|
if(recognition_enabled){
|
||||||
|
detection_enabled = val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
res = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(res){
|
||||||
|
return httpd_resp_send_500(req);
|
||||||
|
}
|
||||||
|
|
||||||
|
httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*");
|
||||||
|
return httpd_resp_send(req, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t status_handler(httpd_req_t *req){
|
||||||
|
static char json_response[1024];
|
||||||
|
|
||||||
|
sensor_t * s = esp_camera_sensor_get();
|
||||||
|
char * p = json_response;
|
||||||
|
*p++ = '{';
|
||||||
|
|
||||||
|
p+=sprintf(p, "\"framesize\":%u,", s->status.framesize);
|
||||||
|
p+=sprintf(p, "\"quality\":%u,", s->status.quality);
|
||||||
|
p+=sprintf(p, "\"brightness\":%d,", s->status.brightness);
|
||||||
|
p+=sprintf(p, "\"contrast\":%d,", s->status.contrast);
|
||||||
|
p+=sprintf(p, "\"saturation\":%d,", s->status.saturation);
|
||||||
|
p+=sprintf(p, "\"sharpness\":%d,", s->status.sharpness);
|
||||||
|
p+=sprintf(p, "\"special_effect\":%u,", s->status.special_effect);
|
||||||
|
p+=sprintf(p, "\"wb_mode\":%u,", s->status.wb_mode);
|
||||||
|
p+=sprintf(p, "\"awb\":%u,", s->status.awb);
|
||||||
|
p+=sprintf(p, "\"awb_gain\":%u,", s->status.awb_gain);
|
||||||
|
p+=sprintf(p, "\"aec\":%u,", s->status.aec);
|
||||||
|
p+=sprintf(p, "\"aec2\":%u,", s->status.aec2);
|
||||||
|
p+=sprintf(p, "\"ae_level\":%d,", s->status.ae_level);
|
||||||
|
p+=sprintf(p, "\"aec_value\":%u,", s->status.aec_value);
|
||||||
|
p+=sprintf(p, "\"agc\":%u,", s->status.agc);
|
||||||
|
p+=sprintf(p, "\"agc_gain\":%u,", s->status.agc_gain);
|
||||||
|
p+=sprintf(p, "\"gainceiling\":%u,", s->status.gainceiling);
|
||||||
|
p+=sprintf(p, "\"bpc\":%u,", s->status.bpc);
|
||||||
|
p+=sprintf(p, "\"wpc\":%u,", s->status.wpc);
|
||||||
|
p+=sprintf(p, "\"raw_gma\":%u,", s->status.raw_gma);
|
||||||
|
p+=sprintf(p, "\"lenc\":%u,", s->status.lenc);
|
||||||
|
p+=sprintf(p, "\"vflip\":%u,", s->status.vflip);
|
||||||
|
p+=sprintf(p, "\"hmirror\":%u,", s->status.hmirror);
|
||||||
|
p+=sprintf(p, "\"dcw\":%u,", s->status.dcw);
|
||||||
|
p+=sprintf(p, "\"colorbar\":%u,", s->status.colorbar);
|
||||||
|
p+=sprintf(p, "\"face_detect\":%u,", detection_enabled);
|
||||||
|
p+=sprintf(p, "\"face_enroll\":%u,", is_enrolling);
|
||||||
|
p+=sprintf(p, "\"face_recognize\":%u", recognition_enabled);
|
||||||
|
*p++ = '}';
|
||||||
|
*p++ = 0;
|
||||||
|
httpd_resp_set_type(req, "application/json");
|
||||||
|
httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*");
|
||||||
|
return httpd_resp_send(req, json_response, strlen(json_response));
|
||||||
|
}
|
||||||
|
|
||||||
|
static esp_err_t index_handler(httpd_req_t *req){
|
||||||
|
httpd_resp_set_type(req, "text/html");
|
||||||
|
httpd_resp_set_hdr(req, "Content-Encoding", "gzip");
|
||||||
|
sensor_t * s = esp_camera_sensor_get();
|
||||||
|
if (s->id.PID == OV3660_PID) {
|
||||||
|
return httpd_resp_send(req, (const char *)index_ov3660_html_gz, index_ov3660_html_gz_len);
|
||||||
|
}
|
||||||
|
return httpd_resp_send(req, (const char *)index_ov2640_html_gz, index_ov2640_html_gz_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
void startCameraServer(){
|
||||||
|
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
|
||||||
|
|
||||||
|
httpd_uri_t index_uri = {
|
||||||
|
.uri = "/",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = index_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t status_uri = {
|
||||||
|
.uri = "/status",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = status_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t cmd_uri = {
|
||||||
|
.uri = "/control",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = cmd_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t capture_uri = {
|
||||||
|
.uri = "/capture",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = capture_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
httpd_uri_t stream_uri = {
|
||||||
|
.uri = "/stream",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = stream_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ra_filter_init(&ra_filter, 20);
|
||||||
|
|
||||||
|
mtmn_config.min_face = 80;
|
||||||
|
mtmn_config.pyramid = 0.7;
|
||||||
|
mtmn_config.p_threshold.score = 0.6;
|
||||||
|
mtmn_config.p_threshold.nms = 0.7;
|
||||||
|
mtmn_config.r_threshold.score = 0.7;
|
||||||
|
mtmn_config.r_threshold.nms = 0.7;
|
||||||
|
mtmn_config.r_threshold.candidate_number = 4;
|
||||||
|
mtmn_config.o_threshold.score = 0.7;
|
||||||
|
mtmn_config.o_threshold.nms = 0.4;
|
||||||
|
mtmn_config.o_threshold.candidate_number = 1;
|
||||||
|
|
||||||
|
face_id_init(&id_list, FACE_ID_SAVE_NUMBER, ENROLL_CONFIRM_TIMES);
|
||||||
|
|
||||||
|
Serial.printf("Starting web server on port: '%d'\n", config.server_port);
|
||||||
|
if (httpd_start(&camera_httpd, &config) == ESP_OK) {
|
||||||
|
httpd_register_uri_handler(camera_httpd, &index_uri);
|
||||||
|
httpd_register_uri_handler(camera_httpd, &cmd_uri);
|
||||||
|
httpd_register_uri_handler(camera_httpd, &status_uri);
|
||||||
|
httpd_register_uri_handler(camera_httpd, &capture_uri);
|
||||||
|
}
|
||||||
|
|
||||||
|
config.server_port += 1;
|
||||||
|
config.ctrl_port += 1;
|
||||||
|
Serial.printf("Starting stream server on port: '%d'\n", config.server_port);
|
||||||
|
if (httpd_start(&stream_httpd, &config) == ESP_OK) {
|
||||||
|
httpd_register_uri_handler(stream_httpd, &stream_uri);
|
||||||
|
}
|
||||||
|
}
|
||||||
557
ESP32_CameraWebServer/camera_index.h
Normal file
557
ESP32_CameraWebServer/camera_index.h
Normal file
@ -0,0 +1,557 @@
|
|||||||
|
|
||||||
|
//File: index_ov2640.html.gz, Size: 4316
|
||||||
|
#define index_ov2640_html_gz_len 4316
|
||||||
|
const uint8_t index_ov2640_html_gz[] = {
|
||||||
|
0x1F, 0x8B, 0x08, 0x08, 0x50, 0x5C, 0xAE, 0x5C, 0x00, 0x03, 0x69, 0x6E, 0x64, 0x65, 0x78, 0x5F,
|
||||||
|
0x6F, 0x76, 0x32, 0x36, 0x34, 0x30, 0x2E, 0x68, 0x74, 0x6D, 0x6C, 0x00, 0xE5, 0x5D, 0x7B, 0x73,
|
||||||
|
0xD3, 0xC6, 0x16, 0xFF, 0x9F, 0x4F, 0x21, 0x04, 0x25, 0xF6, 0x34, 0x76, 0x6C, 0xC7, 0x84, 0xE0,
|
||||||
|
0xDA, 0xE2, 0x42, 0x08, 0xD0, 0x19, 0x5E, 0x25, 0x2D, 0x74, 0xA6, 0xD3, 0x81, 0xB5, 0xB4, 0xB2,
|
||||||
|
0x55, 0x64, 0xC9, 0x95, 0x56, 0x76, 0x52, 0x26, 0x9F, 0xE3, 0x7E, 0xA0, 0xFB, 0xC5, 0xEE, 0xD9,
|
||||||
|
0x87, 0xA4, 0x95, 0xBC, 0x7A, 0xD8, 0x26, 0x36, 0x97, 0xEB, 0xCC, 0x14, 0xD9, 0xDA, 0x73, 0xF6,
|
||||||
|
0x9C, 0xF3, 0x3B, 0xAF, 0x5D, 0x3D, 0x3A, 0xBC, 0x6D, 0xF9, 0x26, 0xB9, 0x9A, 0x63, 0x6D, 0x4A,
|
||||||
|
0x66, 0xAE, 0x71, 0x6B, 0xC8, 0xFF, 0xD1, 0xE0, 0x33, 0x9C, 0x62, 0x64, 0xF1, 0x43, 0xF6, 0x75,
|
||||||
|
0x86, 0x09, 0xD2, 0xCC, 0x29, 0x0A, 0x42, 0x4C, 0x46, 0x7A, 0x44, 0xEC, 0xD6, 0xA9, 0x9E, 0x3F,
|
||||||
|
0xED,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 0xE3, 0x7B, 0xED, 0x19, 0x72, 0x3C, 0x05,
|
||||||
|
0x27, 0xCB, 0x09, 0xE7, 0x2E, 0x02, 0x1B, 0xD8, 0x2E, 0x2E, 0xE5, 0x73, 0x67, 0x86, 0xBD, 0xE8,
|
||||||
|
0xB0, 0x82, 0x1B, 0x65, 0xD2, 0xB2, 0x9C, 0x80, 0x8F, 0x1A, 0x50, 0x3B, 0x44, 0x33, 0xAF, 0x92,
|
||||||
|
0x6D, 0x99, 0x5C, 0x9E, 0xEF, 0x61, 0x85, 0x01, 0xE9, 0x44, 0xCB, 0x00, 0xCD, 0xE9, 0x00, 0xFA,
|
||||||
|
0xEF, 0xEA, 0x90, 0x99, 0xE3, 0x71, 0xA7, 0x1A, 0x68, 0xC7, 0xFD, 0xCE, 0xFC, 0xB2, 0x02, 0xCA,
|
||||||
|
0xE3, 0x13, 0xFA, 0xB7, 0x3A, 0x68, 0x8E, 0x2C, 0xCB, 0xF1, 0x26, 0x03, 0xED, 0x54, 0xC9, 0xC2,
|
||||||
|
0x0F, 0x2C, 0x1C, 0xB4, 0x02, 0x64, 0x39, 0x51, 0x38, 0xD0, 0xFA, 0xAA, 0x31, 0x33, 0x14, 0x4C,
|
||||||
|
0x40, 0x16, 0xE2, 0x83, 0xB0, 0xAD, 0xAE, 0x52, 0x12, 0x31, 0x24, 0x70, 0x26, 0x53, 0x02, 0x90,
|
||||||
|
0xAE, 0x8C, 0xC9, 0x1B, 0x4D, 0x84, 0x50, 0x15, 0x9E, 0xA5, 0x76, 0x53, 0x5B, 0x0D, 0xB9, 0xCE,
|
||||||
|
0xC4, 0x6B, 0x39, 0x04, 0xCF, 0x40, 0x9D, 0x90, 0x04, 0x98, 0x98, 0xD3, 0x32, 0x51, 0x6C, 0x67,
|
||||||
|
0x12, 0x05, 0x58, 0x21, 0x48, 0x62, 0xB7, 0x12, 0x85, 0xE1, 0xE4, 0xEA, 0xA9, 0xD6, 0x12, 0x8F,
|
||||||
|
0x3F, 0x3B, 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30, 0x55, 0x43, 0x4E, 0x3F, 0xB2,
|
||||||
|
0x53, 0xAC, 0xA1, 0xAE, 0x5A, 0xD5, 0x34, 0x77, 0xF0, 0x3F, 0x95, 0x0F, 0x71, 0x4D, 0x0A, 0xB3,
|
||||||
|
0x08, 0xFD, 0xD4, 0xCF, 0x24, 0x29, 0xB3, 0xCA, 0x6C, 0xA2, 0x60, 0x5C, 0x9C, 0x51, 0x56, 0xF8,
|
||||||
|
0x16, 0x45, 0xB7, 0x82, 0x6B, 0xB9, 0x08, 0x75, 0xB3, 0x8B, 0x82, 0x71, 0x99, 0x0C, 0x95, 0x59,
|
||||||
|
0x86, 0x7E, 0xAE, 0x6B, 0xF4, 0x1B, 0x77, 0xC6, 0x11, 0x21, 0xBE, 0x17, 0x6E, 0x55, 0xA2, 0x8A,
|
||||||
|
0xE2, 0xEC, 0xAF, 0x28, 0x24, 0x8E, 0x7D, 0xD5, 0x12, 0x21, 0x0D, 0x71, 0x36, 0x47, 0xD0, 0x42,
|
||||||
|
0x8E, 0x31, 0x59, 0x62, 0x5C, 0xDE, 0x6E, 0x78, 0x68, 0x01, 0x79, 0x67, 0x32, 0x71, 0x55, 0xBE,
|
||||||
|
0x67, 0x46, 0x41, 0x48, 0xFB, 0xB6, 0xB9, 0xEF, 0x00, 0xE3, 0x60, 0x75, 0xE2, 0x6C, 0x0C, 0xD6,
|
||||||
|
0x9C, 0xA8, 0x65, 0x8E, 0x15, 0x73, 0xF9, 0x11, 0xA1, 0x36, 0x56, 0x22, 0xE1, 0x83, 0x3A, 0x0E,
|
||||||
|
0xB9, 0x52, 0x9E, 0x13, 0x91, 0xA8, 0x38, 0x13, 0x87, 0x60, 0x69, 0x59, 0xC8, 0xCA, 0x35, 0x30,
|
||||||
|
0xA7, 0xD8, 0xFC, 0x8C, 0xAD, 0x1F, 0x2B, 0xDB, 0xB0, 0xAA, 0xF6, 0xB0, 0xED, 0x78, 0xF3, 0x88,
|
||||||
|
0xB4, 0x68, 0x3B, 0x35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, 0x83, 0x37, 0xA0, 0xB1,
|
||||||
|
0x8B, 0xAD, 0x92, 0xF4, 0x6C, 0x61, 0x1B, 0x45, 0x2E, 0xA9, 0xB0, 0x37, 0xEA, 0xD0, 0xBF, 0xB2,
|
||||||
|
0x19, 0x59, 0x5C, 0xFD, 0x41, 0x37, 0x3A, 0x46, 0x2C, 0x12, 0xFE, 0x54, 0xCC, 0x19, 0xD7, 0x4E,
|
||||||
|
0x34, 0x9F, 0x63, 0x04, 0xA3, 0x4C, 0x5C, 0xB4, 0x24, 0xAD, 0xD5, 0x33, 0xAB, 0x13, 0x57, 0xAD,
|
||||||
|
0x85, 0x68, 0xA5, 0x2B, 0x26, 0xDD, 0xD0, 0x5A, 0x3A, 0x0F, 0x6C, 0xDF, 0x8C, 0x54, 0x65, 0xBA,
|
||||||
|
0x9E, 0x4B, 0xAD, 0xF2, 0x1B, 0xC4, 0x26, 0x0B, 0x5D, 0x87, 0x39, 0x76, 0xE4, 0x79, 0x14, 0xD1,
|
||||||
|
0x16, 0x09, 0x40, 0x4D, 0xC5, 0x44, 0xF5, 0x0C, 0xB7, 0x51, 0x74, 0x66, 0x0C, 0x5B, 0xB4, 0x19,
|
||||||
|
0x93, 0x0B, 0x40, 0x45, 0xA2, 0x48, 0x72, 0x88, 0x16, 0xFA, 0xA0, 0x54, 0xCC, 0x6A, 0x3B, 0xBB,
|
||||||
|
0x90, 0x69, 0x34, 0x53, 0x35, 0x06, 0xF1, 0x64, 0x5D, 0xA8, 0x62, 0x7C, 0xBA, 0x60, 0x32, 0x46,
|
||||||
|
0x8D, 0xCE, 0x61, 0xE7, 0xF0, 0x18, 0xFE, 0xA3, 0x68, 0xD0, 0xCB, 0x9D, 0x4B, 0x98, 0xB7, 0xC0,
|
||||||
|
0xF3, 0x72, 0xC9, 0xA7, 0x7A, 0x9F, 0xA4, 0x28, 0x8D, 0x55, 0x62, 0x51, 0x3F, 0x92, 0xB2, 0x1B,
|
||||||
|
0x26, 0xDD, 0x76, 0x45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FD, 0xCB, 0xBC, 0x06, 0x4C, 0x29,
|
||||||
|
0x91, 0xF5, 0xC4, 0x28, 0x6C, 0x15, 0x31, 0x04, 0x32, 0x46, 0x4E, 0xAF, 0x87, 0x14, 0x8C, 0x49,
|
||||||
|
0xE4, 0x13, 0xD6, 0x97, 0xB6, 0xE7, 0xF9, 0xD4, 0x76, 0x80, 0x66, 0x98, 0x26, 0x22, 0xF1, 0x63,
|
||||||
|
0x31, 0x9B, 0x3C, 0x12, 0x09, 0xA5, 0x6E, 0xBC, 0xC3, 0x2C, 0x5C, 0x01, 0x65, 0xA5, 0x59, 0x57,
|
||||||
|
0xB8, 0x88, 0x0C, 0x9A, 0x99, 0x5F, 0x8F, 0x45, 0x14, 0x3B, 0xA6, 0x2D, 0xC4, 0xDC, 0xA6, 0x42,
|
||||||
|
0x20, 0xC6, 0xCE, 0x9F, 0x33, 0x07, 0x5B, 0x20, 0x37, 0x02, 0xD3, 0x76, 0x3B, 0xBA, 0xF1, 0xDB,
|
||||||
|
0xEF, 0xCF, 0x1F, 0x37, 0x20, 0x11, 0x75, 0x2E, 0xBB, 0xBD, 0x4E, 0xA7, 0x39, 0x3C, 0xE2, 0x43,
|
||||||
|
0xD6, 0xE6, 0xF5, 0x50, 0x37, 0x2E, 0x18, 0xAB, 0xDE, 0x29, 0xB0, 0xEA, 0xF4, 0xFA, 0x9B, 0xB3,
|
||||||
|
0x3A, 0xD5, 0x0D, 0xC6, 0x09, 0x98, 0x5C, 0x3E, 0x38, 0x39, 0xDD, 0x9C, 0xD1, 0x03, 0x90, 0xE9,
|
||||||
|
0x3D, 0x70, 0x3A, 0x05, 0xED, 0x4E, 0xB6, 0x51, 0xEE, 0x44, 0x37, 0x28, 0x1F, 0x88, 0x8A, 0xCB,
|
||||||
|
0xFE, 0xE9, 0x16, 0x7C, 0xEE, 0xEB, 0xA2, 0x24, 0x52, 0x97, 0x8D, 0x8F, 0x74, 0xE3, 0xEC, 0xE7,
|
||||||
|
0x67, 0x8D, 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, 0xE5, 0x3B, 0x58, 0xC6, 0x81, 0x57,
|
||||||
|
0x7C, 0x64, 0x42, 0x6F, 0x12, 0x3C, 0x9C, 0x52, 0x37, 0xCE, 0x2F, 0xE7, 0x7E, 0x18, 0x05, 0x35,
|
||||||
|
0x0B, 0xAA, 0x1A, 0x91, 0x6D, 0x76, 0x06, 0x53, 0x51, 0x38, 0x22, 0xF1, 0xD6, 0x20, 0xDD, 0xD9,
|
||||||
|
0x4F, 0x30, 0xE9, 0x75, 0xFA, 0x5F, 0x15, 0x15, 0xCA, 0xFC, 0x26, 0x81, 0x99, 0x6C, 0x50, 0x77,
|
||||||
|
0x26, 0xB4, 0xEE, 0x3C, 0x3F, 0xDB, 0x4D, 0x2A, 0x9B, 0xEC, 0xAD, 0xE0, 0x4C, 0xF6, 0x5A, 0x70,
|
||||||
|
0x34, 0x7E, 0x51, 0x34, 0x81, 0x69, 0xC3, 0x45, 0x84, 0x20, 0x84, 0xB5, 0xF3, 0x26, 0x0B, 0x08,
|
||||||
|
0x79, 0x53, 0xFD, 0x72, 0x9B, 0xD0, 0x89, 0xC5, 0xC8, 0x46, 0xCE, 0x71, 0x1A, 0x37, 0xF7, 0xBF,
|
||||||
|
0x6A, 0xD4, 0x1C, 0x57, 0x4A, 0xBB, 0x4D, 0xD0, 0x50, 0x4D, 0x4C, 0xEC, 0xB8, 0xF4, 0x09, 0xA6,
|
||||||
|
0x75, 0x01, 0x91, 0x68, 0x39, 0x26, 0xDA, 0x19, 0xFF, 0xB6, 0x0D, 0x36, 0xBD, 0x6D, 0xB0, 0x91,
|
||||||
|
0x25, 0xCA, 0xC2, 0x73, 0x72, 0x43, 0x95, 0xA6, 0xDB, 0x3B, 0xBD, 0x49, 0x78, 0xC6, 0xF3, 0xF5,
|
||||||
|
0x73, 0x1A, 0xD0, 0xE8, 0xC6, 0x93, 0xB7, 0xBB, 0xC9, 0x69, 0x74, 0xB2, 0x9A, 0x39, 0x6D, 0xAB,
|
||||||
|
0x0C, 0xC6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 0x10,
|
||||||
|
0x27, 0x6E, 0xDF, 0x5E, 0x24, 0x7C, 0x35, 0x69, 0x18, 0x9C, 0x4A, 0x4F, 0x5C, 0xC3, 0x09, 0xE9,
|
||||||
|
0x79, 0xBF, 0x55, 0xDE, 0x39, 0x1E, 0x31, 0x73, 0x89, 0xC3, 0xAD, 0x44, 0xF2, 0x8C, 0x05, 0xEE,
|
||||||
|
0xDD, 0xCB, 0x72, 0xBB, 0x3D, 0x12, 0x54, 0xA9, 0x26, 0x7C, 0x3C, 0x44, 0x06, 0x44, 0x1E, 0xA8,
|
||||||
|
0x2D, 0x9E, 0x02, 0x15, 0x22, 0x39, 0x76, 0xE3, 0x76, 0xC6, 0xF0, 0x89, 0x8C, 0x36, 0x35, 0x91,
|
||||||
|
0x63, 0x31, 0x03, 0xB1, 0x7B, 0x20, 0x9A, 0xE9, 0x53, 0x72, 0x5C, 0xBE, 0x47, 0xCC, 0xEB, 0x1B,
|
||||||
|
0x58, 0x5C, 0x1D, 0x6D, 0x82, 0xFD, 0xA9, 0x33, 0xA7, 0x3F, 0x88, 0xF1, 0xE9, 0x54, 0x32, 0xC7,
|
||||||
|
0x49, 0x86, 0x23, 0x55, 0x2C, 0x27, 0x37, 0xFD, 0x30, 0x7E, 0xF4, 0x3A, 0x81, 0xB8, 0x56, 0x21,
|
||||||
|
0x3F, 0x95, 0xCA, 0x26, 0x07, 0x36, 0xF4, 0x5A, 0x46, 0xFA, 0x7B, 0xCE, 0xD4, 0xC9, 0xC0, 0x02,
|
||||||
|
0x26, 0x6C, 0x82, 0x55, 0x26, 0xA5, 0x92, 0xC7, 0x37, 0x8A, 0x29, 0x0C, 0xC2, 0xD8, 0x2D, 0xC7,
|
||||||
|
0xD4, 0x14, 0x6C, 0x56, 0x38, 0x2C, 0x63, 0x95, 0x2B, 0xFC, 0x0A, 0x86, 0x3C, 0x10, 0x1B, 0xBC,
|
||||||
|
0xAE, 0x3D, 0x61, 0x35, 0x8A, 0x32, 0x17, 0x31, 0x96, 0xFD, 0xFD, 0x96, 0x2C, 0xFC, 0x75, 0x1C,
|
||||||
|
0x76, 0x49, 0x0A, 0x94, 0xFD, 0x80, 0xFA, 0x7F, 0x6C, 0x69, 0x1A, 0x22, 0xA9, 0xA3, 0x89, 0x07,
|
||||||
|
0xFB, 0xE3, 0xF8, 0x48, 0xE1, 0x30, 0x21, 0xF7, 0x49, 0x91, 0x32, 0xC8, 0x89, 0x2A, 0x87, 0x08,
|
||||||
|
0xC8, 0xDD, 0xD5, 0xE4, 0x47, 0xF5, 0xC7, 0x90, 0x42, 0x3F, 0x67, 0xF8, 0xB0, 0x8B, 0x32, 0x09,
|
||||||
|
0x13, 0xFE, 0x1B, 0xBF, 0xCD, 0xA9, 0xE5, 0x7B, 0x58, 0xCD, 0x5D, 0x0E, 0x12, 0x15, 0x4F, 0x5E,
|
||||||
|
0xC2, 0xF3, 0x4C, 0xA3, 0xF1, 0xCC, 0x21, 0x0A, 0x86, 0x07, 0x90, 0xBE, 0x55, 0xBC, 0x44, 0x63,
|
||||||
|
0x97, 0x12, 0x04, 0x98, 0x44, 0x81, 0x27, 0x47, 0x21, 0xCF, 0x64, 0x7F, 0x47, 0x38, 0xB8, 0x02,
|
||||||
|
0x46, 0x9F, 0xEE, 0x7E, 0x89, 0xEB, 0xC2, 0xF5, 0x11, 0x7B, 0x34, 0xC1, 0x77, 0x1F, 0x41, 0xE5,
|
||||||
|
0x18, 0xDD, 0xFD, 0xC2, 0xA0, 0xBE, 0xBE, 0x07, 0x53, 0xC2, 0x17, 0x36, 0xF1, 0xF5, 0x27, 0xCE,
|
||||||
|
0xC2, 0xA6, 0x2F, 0x9A, 0x6D, 0x30, 0x16, 0x31, 0x6E, 0x6D, 0x32, 0xC5, 0x5E, 0x23, 0xC0, 0xE1,
|
||||||
|
0x1C, 0xD8, 0xE3, 0x34, 0x01, 0xC6, 0x33, 0xFA, 0x2E, 0x86, 0x12, 0x35, 0x69, 0x7C, 0x0A, 0x30,
|
||||||
|
0xD0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 0xF9, 0xF3, 0x90, 0x97, 0x4E, 0x29, 0x23, 0x35,
|
||||||
|
0x25, 0x73, 0x71, 0xFF, 0xA3, 0xAF, 0xE8, 0x97, 0xDB, 0x17, 0xE8, 0xC9, 0xCF, 0x5D, 0x4C, 0x0F,
|
||||||
|
0x9F, 0x5C, 0xFD, 0x0C, 0x25, 0x9F, 0x37, 0x2E, 0x4C, 0x96, 0x94, 0xE0, 0x2C, 0x69, 0x1A, 0x2B,
|
||||||
|
0x29, 0xD3, 0x06, 0x53, 0xE2, 0xC1, 0x9A, 0x7E, 0x9E, 0x6F, 0xCA, 0x38, 0x24, 0xEB, 0x83, 0x0C,
|
||||||
|
0x29, 0xE5, 0x5A, 0x4D, 0x9B, 0x59, 0x15, 0x48, 0xF4, 0x72, 0xAE, 0x2B, 0xA3, 0x97, 0x16, 0x02,
|
||||||
|
0x12, 0x35, 0x73, 0xE4, 0x6A, 0x62, 0xB9, 0x25, 0x3E, 0x90, 0x8C, 0x1D, 0x12, 0x7F, 0xCE, 0x57,
|
||||||
|
0x26, 0x39, 0x27, 0x5F, 0x3A, 0x9E, 0xE5, 0x2F, 0xDB, 0xF4, 0x7C, 0x43, 0x94, 0x56, 0x59, 0xD1,
|
||||||
|
0xB6, 0xE3, 0x81, 0x01, 0x5F, 0xFC, 0xFA, 0xEA, 0x25, 0x4D, 0x39, 0xF2, 0x0A, 0xE7, 0x20, 0xDB,
|
||||||
|
0x17, 0xB1, 0x77, 0x02, 0x2B, 0x67, 0xA0, 0xB0, 0xB5, 0xA1, 0xD5, 0xE6, 0xA9, 0x26, 0x69, 0x47,
|
||||||
|
0x69, 0x24, 0xD0, 0xC3, 0x4F, 0x7C, 0x4E, 0x5A, 0x78, 0x32, 0x00, 0x37, 0x2B, 0x65, 0xF1, 0xE7,
|
||||||
|
0x79, 0x51, 0x20, 0x0E, 0x1F, 0x13, 0x02, 0xEE, 0xAA, 0x71, 0x47, 0x0E, 0x69, 0x8E, 0x11, 0xAB,
|
||||||
|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||||
|
0xE1, 0xF4, 0x45, 0x62, 0x56, 0x8A, 0x82, 0x5C, 0x1C, 0x90, 0x86, 0xFE, 0xD6, 0xC5, 0x74, 0xBD,
|
||||||
|
0x22, 0x9E, 0xC6, 0x39, 0xFB, 0xF9, 0x99, 0xE6, 0x07, 0x1A, 0x7F, 0xC1, 0x5D, 0x90, 0xBC, 0x5B,
|
||||||
|
0x44, 0x13, 0x6F, 0x7F, 0x62, 0xAB, 0x42, 0x9A, 0x83, 0xC8, 0xD4, 0x09, 0xA1, 0x49, 0xA6, 0x4F,
|
||||||
|
0xDE, 0xE2, 0xDB, 0x7A, 0xF2, 0x82, 0xA7, 0x4A, 0xF5, 0x78, 0x57, 0xFC, 0x53, 0xA2, 0x48, 0xCE,
|
||||||
|
0x9C, 0x9C, 0x26, 0xB5, 0xE5, 0x6D, 0xA1, 0xE3, 0x4A, 0x22, 0x2A, 0x5B, 0x87, 0xAE, 0x61, 0xC2,
|
||||||
|
0xE4, 0xF4, 0x37, 0x6B, 0x45, 0xB5, 0x02, 0x95, 0x86, 0x4C, 0xC8, 0x52, 0x5B, 0xA6, 0xBA, 0xAE,
|
||||||
|
0x58, 0x53, 0xB5, 0xD8, 0x2F, 0x41, 0x94, 0xEE, 0x79, 0x29, 0xB3, 0x7C, 0x31, 0x2A, 0xDC, 0xE2,
|
||||||
|
0xBC, 0xB0, 0xF2, 0xCF, 0xF0, 0x28, 0xDE, 0x59, 0xE5, 0xDF, 0xF8, 0xAB, 0x8B, 0x86, 0x47, 0xFC,
|
||||||
|
0x7F, 0x22, 0xF6, 0x5F, 0x04, 0x9C, 0x39, 0x76, 0x5C, 0x6C, 0x00, 0x00
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
//File: index_ov3660.html.gz, Size: 4408
|
||||||
|
#define index_ov3660_html_gz_len 4408
|
||||||
|
const uint8_t index_ov3660_html_gz[] = {
|
||||||
|
0x1F, 0x8B, 0x08, 0x08, 0x28, 0x5C, 0xAE, 0x5C, 0x00, 0x03, 0x69, 0x6E, 0x64, 0x65, 0x78, 0x5F,
|
||||||
|
0x6F, 0x76, 0x33, 0x36, 0x36, 0x30, 0x2E, 0x68, 0x74, 0x6D, 0x6C, 0x00, 0xE5, 0x5D, 0xEB, 0x92,
|
||||||
|
0xD3, 0xC6, 0x12, 0xFE, 0xCF, 0x53, 0x08, 0x41, 0x58, 0x6F, 0x65, 0xED, 0xF5, 0x6D, 0xCD, 0xE2,
|
||||||
|
0xD8, 0xE6, 0xC0, 0xB2, 0x84, 0x54, 0x01, 0x49, 0x20, 0x21, 0xA9, 0x4A, 0xA5, 0x60, 0x2C, 0x8D,
|
||||||
|
0xED, 0x09, 0xB2, 0xE4, 0x48, 0x23, 0x7B, 0x37, 0xD4, 0x3E, 0xC7, 0x79, 0xA0, 0xF3, 0x62, 0xA7,
|
||||||
|
0xE7, 0x22, 0x69, 0x24, 0x8F, 0x2E, 0xB6, 0x59, 0x9B, 0xC3, 0x31, 0x55, 0x20, 0x5B, 0xD3, 0x3D,
|
||||||
|
0xDD, 0xFD, 0xF5, 0x6D, 0x46, 0x17, 0x06, 0x77, 0x6D, 0xCF, 0xA2, 0xD7, 0x0B, 0x6C, 0xCC, 0xE8,
|
||||||
|
0xDC, 0x19, 0xDD, 0x19, 0x88, 0x7F, 0x0C, 0xF8, 0x0C, 0x66, 0x18, 0xD9, 0xE2, 0x90, 0x7F, 0x9D,
|
||||||
|
0x63, 0x8A, 0x0C, 0x6B, 0x86, 0xFC, 0x00, 0xD3, 0xA1, 0x19, 0xD2, 0x49, 0xFD, 0xDC, 0xCC, 0x9E,
|
||||||
|
0x76, 0xD1, 0x1C, 0x0F, 0xCD, 0x25, 0xC1, 0xAB, 0x85, 0xE7, 0x53, 0xD3, 0xB0, 0x3C, 0x97, 0x62,
|
||||||
|
0x17, 0x86, 0xAF, 0x88, 0x4D, 0x67, 0x43, 0x1B, 0x2F, 0x89, 0x85, 0xEB, 0xFC, 0xCB, 0x09, 0x71,
|
||||||
|
0x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 0x6E,
|
||||||
|
0xF9, 0xD3, 0xCA, 0x01, 0xC4, 0x75, 0x88, 0x8B, 0xAB, 0x8B, 0x97, 0x37, 0x6F, 0x9A, 0x9D, 0x18,
|
||||||
|
0x55, 0x01, 0x18, 0x32, 0x9F, 0x16, 0x79, 0x09, 0xD7, 0x75, 0x7D, 0x32, 0x19, 0x37, 0xAD, 0x66,
|
||||||
|
0xF3, 0x9B, 0xF5, 0x93, 0x33, 0x2C, 0xDC, 0x14, 0x85, 0xD4, 0xDB, 0x3D, 0x22, 0xD6, 0xC2, 0x2A,
|
||||||
|
0xA3, 0xC7, 0xBF, 0xE6, 0xD8, 0x26, 0xC8, 0xA8, 0x29, 0xE1, 0x7C, 0xDE, 0x04, 0x9F, 0x3A, 0x36,
|
||||||
|
0x90, 0x6B, 0x1B, 0x35, 0xCF, 0x27, 0x10, 0x08, 0x88, 0xA7, 0x1B, 0x07, 0x7E, 0x81, 0xC2, 0xB1,
|
||||||
|
0xC0, 0xC7, 0x1A, 0x95, 0x0B, 0x62, 0x46, 0xB5, 0x88, 0x3E, 0x6C, 0xD8, 0xA7, 0x42, 0xCA, 0x61,
|
||||||
|
0x9F, 0xD2, 0x00, 0xD2, 0xE8, 0xC8, 0xD9, 0x17, 0xE1, 0xA5, 0x4A, 0x98, 0x87, 0x19, 0xFB, 0xCC,
|
||||||
|
0xD1, 0x55, 0xBD, 0x10, 0xBB, 0x68, 0x50, 0x84, 0x21, 0x94, 0x59, 0xAB, 0x06, 0x43, 0x97, 0x33,
|
||||||
|
0xA3, 0x6E, 0xB0, 0x2C, 0x79, 0xAC, 0xA7, 0x91, 0x4C, 0xF5, 0x90, 0xB3, 0x8F, 0xEA, 0x14, 0x1B,
|
||||||
|
0xA8, 0xAB, 0x57, 0x35, 0xC9, 0x1D, 0xE2, 0x8F, 0xCE, 0x87, 0x84, 0x26, 0xB9, 0x59, 0x84, 0x7D,
|
||||||
|
0xAA, 0x67, 0x92, 0x84, 0x59, 0x69, 0x36, 0x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xCB, 0x34, 0xE5,
|
||||||
|
0xB4, 0x39, 0xB0, 0x28, 0xE2, 0x08, 0x64, 0xEA, 0x1D, 0x09, 0x4D, 0x82, 0xCC, 0xE7, 0x05, 0xE6,
|
||||||
|
0x36, 0x71, 0x61, 0xED, 0x80, 0x8F, 0x02, 0xBA, 0x31, 0x2A, 0x11, 0x21, 0x24, 0x35, 0x79, 0x74,
|
||||||
|
0x30, 0x44, 0x62, 0x51, 0xBE, 0x02, 0x3C, 0x02, 0x44, 0x43, 0x9F, 0xDF, 0xE5, 0xB8, 0x31, 0x22,
|
||||||
|
0x09, 0x29, 0x54, 0xC3, 0xF8, 0x78, 0x27, 0x54, 0x76, 0x49, 0x5F, 0x8A, 0x38, 0x12, 0x97, 0x28,
|
||||||
|
0x85, 0x75, 0x6F, 0x09, 0x97, 0x32, 0x69, 0x77, 0xC2, 0x65, 0x86, 0xFC, 0xC5, 0x56, 0xE9, 0x2B,
|
||||||
|
0xA6, 0x04, 0x54, 0xA2, 0xC3, 0x83, 0x85, 0x4A, 0x22, 0xCC, 0x57, 0x10, 0x2B, 0xB0, 0xFE, 0xF6,
|
||||||
|
0x48, 0xB0, 0x79, 0xC7, 0x2F, 0xE9, 0xCC, 0xD1, 0x33, 0x5C, 0x7F, 0xCD, 0x8E, 0x76, 0x81, 0xE3,
|
||||||
|
0x49, 0x48, 0xBD, 0x1D, 0x00, 0x89, 0x64, 0x11, 0x70, 0x34, 0x25, 0x1A, 0xE7, 0xB7, 0x84, 0xC6,
|
||||||
|
0xF9, 0x2D, 0xA2, 0x81, 0xF0, 0x7B, 0x07, 0x2F, 0xB1, 0xB3, 0x31, 0x1C, 0x11, 0xA1, 0x39, 0xBA,
|
||||||
|
0xBC, 0x5A, 0x78, 0x01, 0xBB, 0x5B, 0xF8, 0x25, 0xFB, 0xBE, 0x53, 0x90, 0x9C, 0xED, 0x80, 0x49,
|
||||||
|
0x2C, 0x90, 0x8C, 0x91, 0x33, 0x89, 0xCA, 0xD9, 0x2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 0x68, 0xB0, 0xBD, 0xA9, 0xBB, 0xD5, 0x23, 0x0D, 0x29, 0x72, 0x09, 0xDF, 0x1B, 0xF1,
|
||||||
|
0x7D, 0xBF, 0x00, 0x26, 0x42, 0xEC, 0x0D, 0x43, 0x45, 0xEF, 0x7D, 0xC0, 0x18, 0x3D, 0x16, 0xC4,
|
||||||
|
0x8B, 0xB4, 0x78, 0x15, 0x5E, 0x19, 0x52, 0xF2, 0xE1, 0x27, 0x7E, 0x4B, 0x0B, 0xA6, 0xF5, 0x80,
|
||||||
|
0x12, 0xC7, 0x81, 0x85, 0x30, 0xA6, 0xC6, 0x5B, 0x76, 0x38, 0x38, 0x15, 0x03, 0xAA, 0x73, 0x91,
|
||||||
|
0xCF, 0xDC, 0xB0, 0x97, 0x50, 0xA2, 0xB9, 0x39, 0x7A, 0xCB, 0x5E, 0x12, 0x08, 0xBC, 0xD8, 0xB7,
|
||||||
|
0xCD, 0x99, 0x71, 0x23, 0x62, 0xD7, 0xF7, 0x40, 0xA8, 0x18, 0x24, 0xF9, 0xAE, 0x26, 0xD3, 0x88,
|
||||||
|
0x8E, 0x94, 0xDF, 0x46, 0x97, 0x7C, 0xB0, 0xC1, 0xBC, 0xAC, 0x7C, 0x3A, 0x76, 0xD5, 0xC2, 0xCA,
|
||||||
|
0xBF, 0xB8, 0x31, 0x38, 0x75, 0x91, 0xC6, 0xDC, 0x39, 0x28, 0x0C, 0xC4, 0xDB, 0x25, 0x73, 0x58,
|
||||||
|
0xC5, 0xCF, 0x33, 0x71, 0x4B, 0x24, 0x8F, 0x69, 0xC6, 0x6A, 0x65, 0x1F, 0xDF, 0x94, 0xDB, 0x4C,
|
||||||
|
0xD5, 0x82, 0x96, 0x3F, 0x88, 0x29, 0xEB, 0x21, 0x3B, 0x8C, 0xCD, 0xFF, 0x9F, 0x7F, 0x97, 0xF9,
|
||||||
|
0x0C, 0x7B, 0xF7, 0x67, 0x22, 0x98, 0x69, 0x04, 0xBE, 0x35, 0x34, 0xF3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CC, 0x86, 0x06, 0xF5, 0x43, 0x9C, 0x66, 0x8B, 0xDD, 0x32, 0xAE, 0x91, 0x58, 0x85,
|
||||||
|
0x8C, 0x27, 0xC8, 0x09, 0x32, 0x9C, 0xC3, 0x85, 0x8D, 0x28, 0x7E, 0xC7, 0x76, 0x0C, 0x61, 0x40,
|
||||||
|
0x0D, 0x3B, 0x27, 0x62, 0xFB, 0xF0, 0x44, 0x9E, 0x79, 0x03, 0x7C, 0x29, 0x3E, 0x4E, 0x66, 0x55,
|
||||||
|
0x7F, 0x06, 0x8A, 0xF4, 0xD7, 0xA1, 0xE1, 0x86, 0x10, 0xC2, 0x8F, 0xB9, 0x0A, 0x46, 0x3F, 0x75,
|
||||||
|
0x96, 0x53, 0x3B, 0x90, 0x9D, 0xE4, 0x3B, 0xDB, 0xF9, 0x9C, 0xFC, 0x47, 0x32, 0x61, 0x13, 0x37,
|
||||||
|
0xF8, 0x1B, 0xE4, 0x87, 0xC0, 0xE3, 0x28, 0xCA, 0xEE, 0x47, 0xC9, 0x8B, 0x79, 0x55, 0x22, 0x6E,
|
||||||
|
0x87, 0x86, 0xEC, 0x83, 0xE5, 0xF9, 0xA5, 0x3C, 0x71, 0xF7, 0xEE, 0x32, 0xE6, 0x6B, 0x28, 0xC3,
|
||||||
|
0xE0, 0x54, 0x72, 0xE2, 0x06, 0x4E, 0x28, 0x4F, 0x3F, 0xAF, 0xF3, 0xCE, 0xF0, 0x88, 0x98, 0x2B,
|
||||||
|
0x1C, 0xEE, 0xC4, 0x92, 0xA7, 0x2C, 0xF0, 0xE0, 0x41, 0x9A, 0xDB, 0xDD, 0xA1, 0xA4, 0x4A, 0x34,
|
||||||
|
0x11, 0xE3, 0x21, 0x32, 0x20, 0xF2, 0x40, 0x6D, 0xF9, 0x4C, 0xBC, 0x14, 0x89, 0x4C, 0x6A, 0x77,
|
||||||
|
0x53, 0x86, 0x8F, 0x65, 0x9C, 0x30, 0x13, 0x11, 0x9B, 0x1B, 0x88, 0x5F,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x5A, 0xFA, 0x86, 0x3F, 0x52, 0x25, 0xDE, 0x42, 0xE6, 0xFF, 0xA7, 0x4B, 0xFC, 0xCE, 0x94, 0x58,
|
||||||
|
0x58, 0xB1, 0xFF, 0x5A, 0x5A, 0xCA, 0xC4, 0x30, 0x45, 0xC9, 0x78, 0xC9, 0x50, 0x4A, 0x1A, 0x8F,
|
||||||
|
0x54, 0xA8, 0x63, 0x39, 0x0A, 0xA9, 0xA3, 0x41, 0xA2, 0x06, 0xC6, 0x5F, 0x2B, 0x19, 0x2B, 0x1E,
|
||||||
|
0x9D, 0x04, 0x42, 0xC2, 0x40, 0x34, 0xE0, 0x23, 0xE3, 0x2C, 0xBB, 0xD4, 0x14, 0x8D, 0x90, 0x50,
|
||||||
|
0x36, 0xD3, 0xFE, 0xA8, 0x03, 0x62, 0x95, 0x52, 0x63, 0xE2, 0x00, 0x11, 0xF4, 0x79, 0x62, 0x96,
|
||||||
|
0x8A, 0x82, 0x1C, 0xEC, 0xD3, 0x9A, 0xF9, 0x93, 0x83, 0xD9, 0xF2, 0x41, 0xDE, 0x14, 0x7E, 0xF1,
|
||||||
|
0xC3, 0x73, 0xC3, 0xF3, 0x0D, 0xF1, 0x16, 0x4D, 0x3F, 0x7E, 0x6B, 0x8E, 0x21, 0x5F, 0x31, 0xC7,
|
||||||
|
0x17, 0x69, 0xC4, 0x9D, 0x1A, 0x74, 0x46, 0x02, 0xE8, 0x59, 0xD9, 0x93, 0xE0, 0xF8, 0xAE, 0x19,
|
||||||
|
0xBF, 0x45, 0xAE, 0x54, 0x3D, 0xD1, 0xA4, 0x7E, 0x17, 0x2B, 0x92, 0x31, 0xA7, 0xA0, 0x49, 0x6C,
|
||||||
|
0x79, 0x57, 0xEA, 0xB8, 0x96, 0x58, 0x8A, 0x96, 0x85, 0x1B, 0x98, 0x30, 0x3E, 0xFD, 0xC5, 0x5A,
|
||||||
|
0x51, 0xAF, 0x40, 0xA9, 0x21, 0x63, 0xB2, 0xC4, 0x96, 0x89, 0xAE, 0x6B, 0xD6, 0xD4, 0xAD, 0xBD,
|
||||||
|
0x0B, 0x10, 0x65, 0x5B, 0x49, 0xDA, 0x6C, 0x9E, 0x8F, 0x8A, 0xB0, 0xB8, 0xA8, 0x72, 0xE2, 0x33,
|
||||||
|
0x38, 0x8D, 0x36, 0x2C, 0xC5, 0x37, 0xF1, 0x52, 0xAE, 0xC1, 0xA9, 0xF8, 0x9F, 0x0A, 0xFF, 0x0B,
|
||||||
|
0x9B, 0xFC, 0x8E, 0x51, 0xC1, 0x70, 0x00, 0x00
|
||||||
|
};
|
||||||
99
ESP32_CameraWebServer/camera_pins.h
Normal file
99
ESP32_CameraWebServer/camera_pins.h
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
|
||||||
|
#if defined(CAMERA_MODEL_WROVER_KIT)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM -1
|
||||||
|
#define XCLK_GPIO_NUM 21
|
||||||
|
#define SIOD_GPIO_NUM 26
|
||||||
|
#define SIOC_GPIO_NUM 27
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 35
|
||||||
|
#define Y8_GPIO_NUM 34
|
||||||
|
#define Y7_GPIO_NUM 39
|
||||||
|
#define Y6_GPIO_NUM 36
|
||||||
|
#define Y5_GPIO_NUM 19
|
||||||
|
#define Y4_GPIO_NUM 18
|
||||||
|
#define Y3_GPIO_NUM 5
|
||||||
|
#define Y2_GPIO_NUM 4
|
||||||
|
#define VSYNC_GPIO_NUM 25
|
||||||
|
#define HREF_GPIO_NUM 23
|
||||||
|
#define PCLK_GPIO_NUM 22
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_ESP_EYE)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM -1
|
||||||
|
#define XCLK_GPIO_NUM 4
|
||||||
|
#define SIOD_GPIO_NUM 18
|
||||||
|
#define SIOC_GPIO_NUM 23
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 36
|
||||||
|
#define Y8_GPIO_NUM 37
|
||||||
|
#define Y7_GPIO_NUM 38
|
||||||
|
#define Y6_GPIO_NUM 39
|
||||||
|
#define Y5_GPIO_NUM 35
|
||||||
|
#define Y4_GPIO_NUM 14
|
||||||
|
#define Y3_GPIO_NUM 13
|
||||||
|
#define Y2_GPIO_NUM 34
|
||||||
|
#define VSYNC_GPIO_NUM 5
|
||||||
|
#define HREF_GPIO_NUM 27
|
||||||
|
#define PCLK_GPIO_NUM 25
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_M5STACK_PSRAM)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM 15
|
||||||
|
#define XCLK_GPIO_NUM 27
|
||||||
|
#define SIOD_GPIO_NUM 25
|
||||||
|
#define SIOC_GPIO_NUM 23
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 19
|
||||||
|
#define Y8_GPIO_NUM 36
|
||||||
|
#define Y7_GPIO_NUM 18
|
||||||
|
#define Y6_GPIO_NUM 39
|
||||||
|
#define Y5_GPIO_NUM 5
|
||||||
|
#define Y4_GPIO_NUM 34
|
||||||
|
#define Y3_GPIO_NUM 35
|
||||||
|
#define Y2_GPIO_NUM 32
|
||||||
|
#define VSYNC_GPIO_NUM 22
|
||||||
|
#define HREF_GPIO_NUM 26
|
||||||
|
#define PCLK_GPIO_NUM 21
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_M5STACK_WIDE)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM 15
|
||||||
|
#define XCLK_GPIO_NUM 27
|
||||||
|
#define SIOD_GPIO_NUM 22
|
||||||
|
#define SIOC_GPIO_NUM 23
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 19
|
||||||
|
#define Y8_GPIO_NUM 36
|
||||||
|
#define Y7_GPIO_NUM 18
|
||||||
|
#define Y6_GPIO_NUM 39
|
||||||
|
#define Y5_GPIO_NUM 5
|
||||||
|
#define Y4_GPIO_NUM 34
|
||||||
|
#define Y3_GPIO_NUM 35
|
||||||
|
#define Y2_GPIO_NUM 32
|
||||||
|
#define VSYNC_GPIO_NUM 25
|
||||||
|
#define HREF_GPIO_NUM 26
|
||||||
|
#define PCLK_GPIO_NUM 21
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_AI_THINKER)
|
||||||
|
#define PWDN_GPIO_NUM 32
|
||||||
|
#define RESET_GPIO_NUM -1
|
||||||
|
#define XCLK_GPIO_NUM 0
|
||||||
|
#define SIOD_GPIO_NUM 26
|
||||||
|
#define SIOC_GPIO_NUM 27
|
||||||
|
|
||||||
|
#define Y9_GPIO_NUM 35
|
||||||
|
#define Y8_GPIO_NUM 34
|
||||||
|
#define Y7_GPIO_NUM 39
|
||||||
|
#define Y6_GPIO_NUM 36
|
||||||
|
#define Y5_GPIO_NUM 21
|
||||||
|
#define Y4_GPIO_NUM 19
|
||||||
|
#define Y3_GPIO_NUM 18
|
||||||
|
#define Y2_GPIO_NUM 5
|
||||||
|
#define VSYNC_GPIO_NUM 25
|
||||||
|
#define HREF_GPIO_NUM 23
|
||||||
|
#define PCLK_GPIO_NUM 22
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error "Camera model not selected"
|
||||||
|
#endif
|
||||||
236
ESP32_cam_server/ESP32_cam_server.ino
Normal file
236
ESP32_cam_server/ESP32_cam_server.ino
Normal file
@ -0,0 +1,236 @@
|
|||||||
|
/*********
|
||||||
|
Rui Santos
|
||||||
|
Complete project details at https://RandomNerdTutorials.com
|
||||||
|
|
||||||
|
IMPORTANT!!!
|
||||||
|
- Select Board "ESP32 Wrover Module"
|
||||||
|
- Select the Partion Scheme "Huge APP (3MB No OTA)
|
||||||
|
- GPIO 0 must be connected to GND to upload a sketch
|
||||||
|
- After connecting GPIO 0 to GND, press the ESP32-CAM on-board RESET button to put your board in flashing mode
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files.
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
*********/
|
||||||
|
|
||||||
|
#include "esp_camera.h"
|
||||||
|
#include <WiFi.h>
|
||||||
|
#include "esp_timer.h"
|
||||||
|
#include "img_converters.h"
|
||||||
|
#include "Arduino.h"
|
||||||
|
#include "fb_gfx.h"
|
||||||
|
#include "soc/soc.h" //disable brownout problems
|
||||||
|
#include "soc/rtc_cntl_reg.h" //disable brownout problems
|
||||||
|
#include "dl_lib.h"
|
||||||
|
#include "esp_http_server.h"
|
||||||
|
|
||||||
|
//Replace with your network credentials
|
||||||
|
const char* ssid = "GAST";
|
||||||
|
const char* password = "passatvr6";
|
||||||
|
|
||||||
|
#define PART_BOUNDARY "123456789000000000000987654321"
|
||||||
|
|
||||||
|
// This project was only tested with the AI Thinker Model
|
||||||
|
#define CAMERA_MODEL_AI_THINKER
|
||||||
|
|
||||||
|
// Not tested with these boards
|
||||||
|
//#define CAMERA_MODEL_M5STACK_PSRAM
|
||||||
|
//#define CAMERA_MODEL_WROVER_KIT
|
||||||
|
|
||||||
|
#if defined(CAMERA_MODEL_WROVER_KIT)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM -1
|
||||||
|
#define XCLK_GPIO_NUM 21
|
||||||
|
#define SIOD_GPIO_NUM 26
|
||||||
|
#define SIOC_GPIO_NUM 27
|
||||||
|
#define Y9_GPIO_NUM 35
|
||||||
|
|
||||||
|
#define Y8_GPIO_NUM 34
|
||||||
|
#define Y7_GPIO_NUM 39
|
||||||
|
#define Y6_GPIO_NUM 36
|
||||||
|
#define Y5_GPIO_NUM 19
|
||||||
|
#define Y4_GPIO_NUM 18
|
||||||
|
#define Y3_GPIO_NUM 5
|
||||||
|
#define Y2_GPIO_NUM 4
|
||||||
|
#define VSYNC_GPIO_NUM 25
|
||||||
|
#define HREF_GPIO_NUM 23
|
||||||
|
#define PCLK_GPIO_NUM 22
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_M5STACK_PSRAM)
|
||||||
|
#define PWDN_GPIO_NUM -1
|
||||||
|
#define RESET_GPIO_NUM 15
|
||||||
|
#define XCLK_GPIO_NUM 27
|
||||||
|
#define SIOD_GPIO_NUM 25
|
||||||
|
#define SIOC_GPIO_NUM 23
|
||||||
|
#define Y9_GPIO_NUM 19
|
||||||
|
#define Y8_GPIO_NUM 36
|
||||||
|
#define Y7_GPIO_NUM 18
|
||||||
|
#define Y6_GPIO_NUM 39
|
||||||
|
#define Y5_GPIO_NUM 5
|
||||||
|
#define Y4_GPIO_NUM 34
|
||||||
|
#define Y3_GPIO_NUM 35
|
||||||
|
#define Y2_GPIO_NUM 32
|
||||||
|
#define VSYNC_GPIO_NUM 22
|
||||||
|
#define HREF_GPIO_NUM 26
|
||||||
|
#define PCLK_GPIO_NUM 21
|
||||||
|
|
||||||
|
#elif defined(CAMERA_MODEL_AI_THINKER)
|
||||||
|
#define PWDN_GPIO_NUM 32
|
||||||
|
#define RESET_GPIO_NUM -1
|
||||||
|
#define XCLK_GPIO_NUM 0
|
||||||
|
#define SIOD_GPIO_NUM 26
|
||||||
|
#define SIOC_GPIO_NUM 27
|
||||||
|
#define Y9_GPIO_NUM 35
|
||||||
|
#define Y8_GPIO_NUM 34
|
||||||
|
#define Y7_GPIO_NUM 39
|
||||||
|
#define Y6_GPIO_NUM 36
|
||||||
|
#define Y5_GPIO_NUM 21
|
||||||
|
#define Y4_GPIO_NUM 19
|
||||||
|
#define Y3_GPIO_NUM 18
|
||||||
|
#define Y2_GPIO_NUM 5
|
||||||
|
#define VSYNC_GPIO_NUM 25
|
||||||
|
#define HREF_GPIO_NUM 23
|
||||||
|
#define PCLK_GPIO_NUM 22
|
||||||
|
#else
|
||||||
|
#error "Camera model not selected"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static const char* _STREAM_CONTENT_TYPE = "multipart/x-mixed-replace;boundary=" PART_BOUNDARY;
|
||||||
|
static const char* _STREAM_BOUNDARY = "\r\n--" PART_BOUNDARY "\r\n";
|
||||||
|
static const char* _STREAM_PART = "Content-Type: image/jpeg\r\nContent-Length: %u\r\n\r\n";
|
||||||
|
|
||||||
|
httpd_handle_t stream_httpd = NULL;
|
||||||
|
|
||||||
|
static esp_err_t stream_handler(httpd_req_t *req){
|
||||||
|
camera_fb_t * fb = NULL;
|
||||||
|
esp_err_t res = ESP_OK;
|
||||||
|
size_t _jpg_buf_len = 0;
|
||||||
|
uint8_t * _jpg_buf = NULL;
|
||||||
|
char * part_buf[64];
|
||||||
|
|
||||||
|
res = httpd_resp_set_type(req, _STREAM_CONTENT_TYPE);
|
||||||
|
if(res != ESP_OK){
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
while(true){
|
||||||
|
fb = esp_camera_fb_get();
|
||||||
|
if (!fb) {
|
||||||
|
Serial.println("Camera capture failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
} else {
|
||||||
|
if(fb->width > 400){
|
||||||
|
if(fb->format != PIXFORMAT_JPEG){
|
||||||
|
bool jpeg_converted = frame2jpg(fb, 80, &_jpg_buf, &_jpg_buf_len);
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
if(!jpeg_converted){
|
||||||
|
Serial.println("JPEG compression failed");
|
||||||
|
res = ESP_FAIL;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_jpg_buf_len = fb->len;
|
||||||
|
_jpg_buf = fb->buf;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
size_t hlen = snprintf((char *)part_buf, 64, _STREAM_PART, _jpg_buf_len);
|
||||||
|
res = httpd_resp_send_chunk(req, (const char *)part_buf, hlen);
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
res = httpd_resp_send_chunk(req, (const char *)_jpg_buf, _jpg_buf_len);
|
||||||
|
}
|
||||||
|
if(res == ESP_OK){
|
||||||
|
res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY));
|
||||||
|
}
|
||||||
|
if(fb){
|
||||||
|
esp_camera_fb_return(fb);
|
||||||
|
fb = NULL;
|
||||||
|
_jpg_buf = NULL;
|
||||||
|
} else if(_jpg_buf){
|
||||||
|
free(_jpg_buf);
|
||||||
|
_jpg_buf = NULL;
|
||||||
|
}
|
||||||
|
if(res != ESP_OK){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//Serial.printf("MJPG: %uB\n",(uint32_t)(_jpg_buf_len));
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
void startCameraServer(){
|
||||||
|
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
|
||||||
|
config.server_port = 80;
|
||||||
|
|
||||||
|
httpd_uri_t index_uri = {
|
||||||
|
.uri = "/",
|
||||||
|
.method = HTTP_GET,
|
||||||
|
.handler = stream_handler,
|
||||||
|
.user_ctx = NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//Serial.printf("Starting web server on port: '%d'\n", config.server_port);
|
||||||
|
if (httpd_start(&stream_httpd, &config) == ESP_OK) {
|
||||||
|
httpd_register_uri_handler(stream_httpd, &index_uri);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector
|
||||||
|
|
||||||
|
Serial.begin(115200);
|
||||||
|
Serial.setDebugOutput(false);
|
||||||
|
|
||||||
|
camera_config_t config;
|
||||||
|
config.ledc_channel = LEDC_CHANNEL_0;
|
||||||
|
config.ledc_timer = LEDC_TIMER_0;
|
||||||
|
config.pin_d0 = Y2_GPIO_NUM;
|
||||||
|
config.pin_d1 = Y3_GPIO_NUM;
|
||||||
|
config.pin_d2 = Y4_GPIO_NUM;
|
||||||
|
config.pin_d3 = Y5_GPIO_NUM;
|
||||||
|
config.pin_d4 = Y6_GPIO_NUM;
|
||||||
|
config.pin_d5 = Y7_GPIO_NUM;
|
||||||
|
config.pin_d6 = Y8_GPIO_NUM;
|
||||||
|
config.pin_d7 = Y9_GPIO_NUM;
|
||||||
|
config.pin_xclk = XCLK_GPIO_NUM;
|
||||||
|
config.pin_pclk = PCLK_GPIO_NUM;
|
||||||
|
config.pin_vsync = VSYNC_GPIO_NUM;
|
||||||
|
config.pin_href = HREF_GPIO_NUM;
|
||||||
|
config.pin_sscb_sda = SIOD_GPIO_NUM;
|
||||||
|
config.pin_sscb_scl = SIOC_GPIO_NUM;
|
||||||
|
config.pin_pwdn = PWDN_GPIO_NUM;
|
||||||
|
config.pin_reset = RESET_GPIO_NUM;
|
||||||
|
config.xclk_freq_hz = 20000000;
|
||||||
|
config.pixel_format = PIXFORMAT_JPEG;
|
||||||
|
config.frame_size = FRAMESIZE_UXGA;
|
||||||
|
config.jpeg_quality = 10;
|
||||||
|
config.fb_count = 2;
|
||||||
|
|
||||||
|
// Camera init
|
||||||
|
esp_err_t err = esp_camera_init(&config);
|
||||||
|
if (err != ESP_OK) {
|
||||||
|
Serial.printf("Camera init failed with error 0x%x", err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// Wi-Fi connection
|
||||||
|
WiFi.begin(ssid, password);
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
delay(500);
|
||||||
|
Serial.print(".");
|
||||||
|
}
|
||||||
|
Serial.println("");
|
||||||
|
Serial.println("WiFi connected");
|
||||||
|
|
||||||
|
// Start streaming web server
|
||||||
|
startCameraServer();
|
||||||
|
Serial.print("Camera Stream Ready! Go to: http://");
|
||||||
|
Serial.print(WiFi.localIP());
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
delay(1);
|
||||||
|
}
|
||||||
32
ESP32_krass/ESP32_krass.ino
Normal file
32
ESP32_krass/ESP32_krass.ino
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
// Playing a digital WAV recording repeatadly using the XTronical DAC Audio library
|
||||||
|
// prints out to the serial monitor numbers counting up showing that the sound plays
|
||||||
|
// independently of the main loop
|
||||||
|
// See www.xtronical.com for write ups on sound, the hardware required and how to make
|
||||||
|
// the wav files and include them in your code
|
||||||
|
|
||||||
|
#include "SoundData.h";
|
||||||
|
#include "XT_DAC_Audio.h";
|
||||||
|
#include "krass.h";
|
||||||
|
|
||||||
|
XT_DAC_Audio_Class DacAudio(25,0); // Create the main player class object.
|
||||||
|
// Use GPIO 25, one of the 2 DAC pins and timer 0
|
||||||
|
|
||||||
|
XT_Wav_Class StarWars(StarWarsWav); // create an object of type XT_Wav_Class that is used by
|
||||||
|
// the dac audio class (above), passing wav data as parameter.
|
||||||
|
|
||||||
|
XT_Wav_Class Krass(krass_wav);
|
||||||
|
|
||||||
|
uint32_t DemoCounter=0; // Just a counter to use in the serial monitor
|
||||||
|
// not essential to playing the sound
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
Serial.begin(115200); // Not needed for sound, just to demo printing to the serial
|
||||||
|
Krass.RepeatForever=true; // Keep on playing sample forever!!!
|
||||||
|
DacAudio.Play(&Krass); // Set to play
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
DacAudio.FillBuffer(); // Fill the sound buffer with data
|
||||||
|
Serial.println(DemoCounter++); // Showing that the sound will play as well as your code running here.
|
||||||
|
}
|
||||||
14578
ESP32_krass/SoundData.h
Normal file
14578
ESP32_krass/SoundData.h
Normal file
File diff suppressed because it is too large
Load Diff
7134
ESP32_krass/krass.h
Normal file
7134
ESP32_krass/krass.h
Normal file
File diff suppressed because it is too large
Load Diff
121
FreqCounter1/FreqCounter1.ino
Normal file
121
FreqCounter1/FreqCounter1.ino
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
// Frequency Counter Lib example
|
||||||
|
|
||||||
|
/*
|
||||||
|
Martin Nawrath KHM LAB3
|
||||||
|
Kunsthochschule f¸r Medien Kˆln
|
||||||
|
Academy of Media Arts
|
||||||
|
http://www.khm.de
|
||||||
|
http://interface.khm.de/index.php/labor/experimente/
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
Hardware 74HC590
|
||||||
|
/4 <- QB 1 16 VCC
|
||||||
|
/8 <- QC 2 15 QA -> /2
|
||||||
|
/16 <- QD 3 14 G -> GND
|
||||||
|
/32 <- QE 4 13 RCK <-- Input liegt mit 1Mega an GND
|
||||||
|
/64 <- QF 5 12 CCKEN -> GND
|
||||||
|
/128 <- QG 6 11 CCK <--
|
||||||
|
/256 <- QH 7 10 CCLR VCC
|
||||||
|
GND 8 9 RCO offen
|
||||||
|
|
||||||
|
http://www.pjrc.com/teensy/td_libs_FreqCount.html
|
||||||
|
Board FrequencyInput Pin Pins Unusable with analogWrite()
|
||||||
|
Arduino Uno 5 3, 9, 10, 11
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <FreqCounter.h>
|
||||||
|
|
||||||
|
|
||||||
|
unsigned long frq;
|
||||||
|
int cnt;
|
||||||
|
int pinLed=13;
|
||||||
|
|
||||||
|
|
||||||
|
//Motorsteuerung
|
||||||
|
const int r1Pin = 7;
|
||||||
|
const int r2Pin = 6;
|
||||||
|
boolean r1 = false;
|
||||||
|
boolean r2 = false;
|
||||||
|
boolean change = false;
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
pinMode(r1Pin, OUTPUT);
|
||||||
|
pinMode(r2Pin, OUTPUT);
|
||||||
|
update();
|
||||||
|
Serial.begin(115200); // connect to the serial port
|
||||||
|
//Serial.println("Frequency Counter");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
|
||||||
|
// wait if any serial is going on
|
||||||
|
FreqCounter::f_comp=8; // Cal Value / Calibrate with professional Freq Counter
|
||||||
|
FreqCounter::start(100); // 100 ms Gate Time
|
||||||
|
|
||||||
|
while (FreqCounter::f_ready == 0)
|
||||||
|
frq=FreqCounter::f_freq;
|
||||||
|
Serial.print('>');
|
||||||
|
Serial.print(frq);
|
||||||
|
Serial.print('<');
|
||||||
|
if (change) {
|
||||||
|
char c = update();
|
||||||
|
Serial.println(c);
|
||||||
|
change = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
char update(){
|
||||||
|
char c=65;
|
||||||
|
if(r1==true){
|
||||||
|
digitalWrite(r1Pin,LOW);
|
||||||
|
c++;
|
||||||
|
} else {
|
||||||
|
digitalWrite(r1Pin,HIGH);
|
||||||
|
|
||||||
|
}
|
||||||
|
if(r2==true){
|
||||||
|
digitalWrite(r2Pin,LOW);
|
||||||
|
c++;
|
||||||
|
} else {
|
||||||
|
digitalWrite(r2Pin,HIGH);
|
||||||
|
}
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
SerialEvent occurs whenever a new data comes in the
|
||||||
|
hardware serial RX. This routine is run between each
|
||||||
|
time loop() runs, so using delay inside loop can delay
|
||||||
|
response. Multiple bytes of data may be available.
|
||||||
|
*/
|
||||||
|
void serialEvent() {
|
||||||
|
while (Serial.available()) {
|
||||||
|
// get the new byte:
|
||||||
|
char inChar = (char)Serial.read();
|
||||||
|
if (inChar == '0'){
|
||||||
|
r1= false;
|
||||||
|
r2= false;
|
||||||
|
change = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (inChar == '1') {
|
||||||
|
r1= true;
|
||||||
|
r2= false;
|
||||||
|
change = true;
|
||||||
|
}
|
||||||
|
if (inChar == '2') {
|
||||||
|
r1= false;
|
||||||
|
r2= true;
|
||||||
|
change = true;
|
||||||
|
}
|
||||||
|
if (inChar == '3') {
|
||||||
|
r1= true;
|
||||||
|
r2= true;
|
||||||
|
change = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
@ -0,0 +1,615 @@
|
|||||||
|
|
||||||
|
/*************************************************************************************
|
||||||
|
|
||||||
|
Kevin Lo, March 2015
|
||||||
|
|
||||||
|
This program will show PH , Room Temperature and Water Temperature on the LCD panel.
|
||||||
|
Also support serial communication.
|
||||||
|
|
||||||
|
Connection:
|
||||||
|
1) Plug the LCD Keypad to the UNO
|
||||||
|
2) Connect Arduino D2 to PH Meter Board T2 (DS18B20)
|
||||||
|
3) Connect Arduino A1 to PH Meter Board T1 (LM35)
|
||||||
|
4) Connect Arduino A2 to PH Meter Board P0 (PH)
|
||||||
|
5) Connect Arduino 5V to PH Meter Board Vcc
|
||||||
|
6) Connect Arduino GND to PH Meter Board GND
|
||||||
|
|
||||||
|
Require Library :
|
||||||
|
LiquidCrystal : http://arduino.cc/en/Reference/LiquidCrystal
|
||||||
|
OneWire : http://www.pjrc.com/teensy/td_libs_OneWire.html
|
||||||
|
DallasTemperature : http://milesburton.com/Dallas_Temperature_Control_Library
|
||||||
|
|
||||||
|
Serial Communication :
|
||||||
|
Send command in HEX format .
|
||||||
|
AA 01 01 BB , Enquiry DS18B20 temperature
|
||||||
|
AA 01 02 BB , Enquiry LM35 temperature
|
||||||
|
AA 01 03 BB , Enquiry PH reading
|
||||||
|
AA 01 04 BB , Enqyiry DS18B20 , LM35 and Ph
|
||||||
|
|
||||||
|
Version :
|
||||||
|
v0.1 5/3/2015 First Version
|
||||||
|
|
||||||
|
**************************************************************************************/
|
||||||
|
|
||||||
|
#include <LiquidCrystal.h>
|
||||||
|
//#include <OneWire.h>
|
||||||
|
//#include <DallasTemperature.h>
|
||||||
|
#include <EEPROM.h>
|
||||||
|
|
||||||
|
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // select the pins used on the LCD panel
|
||||||
|
//#define ONE_WIRE_BUS 2 // DS18B20 connect to Pin 2
|
||||||
|
#define MOTOR1 3 // jfs Pumpenrelais 1 Kontrolle
|
||||||
|
#define MOTOR2 2 // jfs Pumpenrelais 2 An/Aus
|
||||||
|
|
||||||
|
int Pumpe = 0; // jfs Pumpenkontrolle 0=aus 1=Kontrolle 2=an
|
||||||
|
|
||||||
|
#define FLOWRATE 20
|
||||||
|
#define MAXTUB 25
|
||||||
|
double tub[] = {0.13,0.19,0.25,0.38,0.44,0.51,0.57,0.64,0.76,0.89,0.95,1.02,1.09,1.14,1.22,1.30,1.42,1.52,1.65,1.75,1.85,2.06,2.29,2.54,2.79,3.17};
|
||||||
|
double ml[] = {0.0011,0.0023,0.0041,0.0094,0.013,0.017,0.021,0.026,0.036,0.049,0.056,0.063,0.072,0.078,0.088,0.098,0.11,0.13,0.15,0.16,0.17,0.20,0.24,0.27,0.31,0.35};
|
||||||
|
int tubid = 0;
|
||||||
|
int ee_tubid = 0;
|
||||||
|
double korrf = 0.915; // 22.09.2020 vorher 0.71
|
||||||
|
unsigned long start_timer; // jfs Timer start im Automodus
|
||||||
|
unsigned long time_flow; // aktuelle Zeitsapnne
|
||||||
|
double flow; // zugeflossene Menge ml[tubid]*20 -> ml/min
|
||||||
|
// msec/60000 -> min
|
||||||
|
|
||||||
|
//OneWire oneWire(ONE_WIRE_BUS);
|
||||||
|
//DallasTemperature sensors(&oneWire);
|
||||||
|
|
||||||
|
// the current address in the EEPROM (i.e. which byte
|
||||||
|
// we're going to write to next)
|
||||||
|
int addrph4 = 10;
|
||||||
|
int addrph7 = 20;
|
||||||
|
|
||||||
|
#define STX 0xAA // define STX for serial communication
|
||||||
|
#define ETX 0XBB // define ETX for serial communication
|
||||||
|
|
||||||
|
byte RxCmd [4] = {0,0,0,0};
|
||||||
|
|
||||||
|
// define some values used by the panel and buttons
|
||||||
|
int lcd_key = -1;
|
||||||
|
int adc_key_in = 0;
|
||||||
|
int adc_key_prev = -1;
|
||||||
|
int CurrentMode = 0; // 0 = Normal Display , 1 = Debug1 , 2 = Debug2
|
||||||
|
int CalSelect = 0; // 0 = PH4 Calibration Select , 1 = PH7 Calibration Select
|
||||||
|
|
||||||
|
const int NumReadings = 20; // number of reading for LM35
|
||||||
|
int Index = 0; // index
|
||||||
|
//int TempReadings[NumReadings]; // array for store LM35 readings
|
||||||
|
//int TempTotal = 0; // LM35 running total
|
||||||
|
//int TempAverage = 0; // LM35 average reading
|
||||||
|
//double TempValue = 0; // LM35 Temperature Data in Human Reading Format after calculation
|
||||||
|
|
||||||
|
int PhReadings[NumReadings]; // array for store PH readings
|
||||||
|
int PhTotal = 0; // PH running total
|
||||||
|
int PhAverage = 0; // PH average reading
|
||||||
|
|
||||||
|
double Ph7Buffer = 6.86; // For PH7 buffer solution's PH value , 7 or 6.86
|
||||||
|
double Ph4Buffer = 4.01; // For PH4 buffer solution's PH value , 4 or 4.01
|
||||||
|
|
||||||
|
//double Ph7Reading = 625; // PH7 Buffer Solution Reading.
|
||||||
|
//double Ph4Reading = 727; // PH4 Buffer Solution Reading.
|
||||||
|
|
||||||
|
int Ph7Reading = 625; // PH7 Buffer Solution Reading.
|
||||||
|
int Ph4Reading = 727; // PH4 Buffer Solution Reading.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//double Ph4Reading = EEPROM.read(addrph4); // PH7 Buffer Solution Reading.
|
||||||
|
//double Ph7Reading = EEPROM.read(addrph7);
|
||||||
|
|
||||||
|
|
||||||
|
double PhRatio = 0; // PH Step
|
||||||
|
double PhValue = 0; // Ph Value in Human Reading Format after calculation
|
||||||
|
|
||||||
|
#define btnRIGHT 0
|
||||||
|
#define btnUP 1
|
||||||
|
#define btnDOWN 2
|
||||||
|
#define btnLEFT 3
|
||||||
|
#define btnSELECT 4
|
||||||
|
#define btnNONE 5
|
||||||
|
|
||||||
|
int read_LCD_buttons(){ // read the buttons
|
||||||
|
adc_key_in = analogRead(0); // read the value from the sensor
|
||||||
|
delay(10); // switch debounce delay. Increase this delay if incorrect switch selections are returned.
|
||||||
|
int k = (analogRead(0) - adc_key_in); // gives the button a slight range to allow for a little contact resistance noise
|
||||||
|
if (5 < abs(k)) return btnNONE; // double checks the keypress. If the two readings are not equal +/-k value after debounce delay, it tries again.
|
||||||
|
//lcd.print(adc_key_in); // read button value and print for calibrate
|
||||||
|
|
||||||
|
// my buttons when read are centered at these valies: 0, 144, 329, 504, 741
|
||||||
|
// we add approx 50 to those values and check to see if we are close
|
||||||
|
// We make this the 1st option for speed reasons since it will be the most likely result
|
||||||
|
|
||||||
|
if (adc_key_in > 1000) return btnNONE;
|
||||||
|
if (adc_key_in < 50) return btnRIGHT;
|
||||||
|
if (adc_key_in < 150) return btnUP;
|
||||||
|
if (adc_key_in < 350) return btnDOWN;
|
||||||
|
if (adc_key_in < 550) return btnLEFT;
|
||||||
|
if (adc_key_in < 750) return btnSELECT;
|
||||||
|
return btnNONE; // when all others fail, return this.
|
||||||
|
}
|
||||||
|
|
||||||
|
int hys = 1; // Hysterese zur Messwertglättung
|
||||||
|
int lcv = 0;
|
||||||
|
|
||||||
|
int reading(){ // Reading LM35 and PH Data
|
||||||
|
// Samplin LM35 and PH Value
|
||||||
|
//TempTotal= TempTotal - TempReadings[Index]; // subtract the last reading:
|
||||||
|
PhTotal= PhTotal - PhReadings[Index]; // subtract the last reading:
|
||||||
|
//TempReadings[Index] = analogRead(1); // read from the sensor : LM35
|
||||||
|
PhReadings[Index] = analogRead(2); // read from the sensor : PH
|
||||||
|
//TempTotal= TempTotal + TempReadings[Index]; // add the reading to the temperature total:
|
||||||
|
PhTotal= PhTotal + PhReadings[Index]; // add the reading to the ph total:
|
||||||
|
Index = Index + 1; // advance to the next position in the array:
|
||||||
|
|
||||||
|
if (Index >= NumReadings){ // if we're at the end of the array...
|
||||||
|
Index = 0; // ...wrap around to the beginning:
|
||||||
|
//TempAverage = TempTotal / NumReadings; // calculate the average:
|
||||||
|
lcv = PhTotal / NumReadings; // calculate the average:
|
||||||
|
}
|
||||||
|
//TempValue = (double) TempAverage / 3.4 * (5/10.24); // LM35 connect to CA3140 for amplify 3 time Serial.print(PhAverage);
|
||||||
|
//Serial.print(PhAverage);
|
||||||
|
if (PhAverage == 0){
|
||||||
|
PhAverage = lcv;
|
||||||
|
} else {
|
||||||
|
if (lcv+1 > PhAverage ){
|
||||||
|
PhAverage=lcv;
|
||||||
|
}
|
||||||
|
if (lcv-1 < PhAverage ){
|
||||||
|
PhAverage=lcv;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Serial.print(" ");
|
||||||
|
//Serial.print(lcv);
|
||||||
|
//Serial.print(" ");
|
||||||
|
|
||||||
|
|
||||||
|
PhValue = (Ph7Reading - PhAverage) / PhRatio + Ph7Buffer; // Calculate PH vorher PhAverage
|
||||||
|
|
||||||
|
//Serial.println(PhValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void setup(){
|
||||||
|
EEPROM.get(ee_tubid, tubid);
|
||||||
|
if ((tubid <0) || (tubid>MAXTUB)){
|
||||||
|
tubid=0;
|
||||||
|
}
|
||||||
|
pinMode(MOTOR1, OUTPUT);
|
||||||
|
pinMode(MOTOR2, OUTPUT);
|
||||||
|
pinMode(MOTOR1,HIGH);
|
||||||
|
pinMode(MOTOR2,LOW);
|
||||||
|
Pumpe = 1;
|
||||||
|
|
||||||
|
EEPROM.get(addrph4,Ph4Reading);
|
||||||
|
|
||||||
|
EEPROM.get(addrph7,Ph7Reading);
|
||||||
|
|
||||||
|
lcd.begin(16, 2); // start LCD library
|
||||||
|
|
||||||
|
//for (int TempThisReading = 0; TempThisReading < NumReadings; TempThisReading++) // initialize all the LM35 readings to 0:
|
||||||
|
//TempReadings[TempThisReading] = 0;
|
||||||
|
|
||||||
|
for (int PhThisReading = 0; PhThisReading < NumReadings; PhThisReading++) // initialize all the Ph readings to 0:
|
||||||
|
PhReadings[PhThisReading] = 0;
|
||||||
|
|
||||||
|
PhRatio = (Ph4Reading - Ph7Reading) / (Ph7Buffer - Ph4Buffer); // Calculate Ph Ratio
|
||||||
|
|
||||||
|
Serial.begin(9600);
|
||||||
|
while(Serial.available()) Serial.read(); // empty RX buffer
|
||||||
|
Serial.println("Starting");
|
||||||
|
PhAverage = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void loop(){
|
||||||
|
|
||||||
|
for (int i = 0 ; i < 4 ; i++) {
|
||||||
|
RxCmd[i] = 0;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
if (Serial.available()) {
|
||||||
|
delay(2);
|
||||||
|
RxCmd[0] = Serial.read();
|
||||||
|
if (RxCmd[0] == STX) {
|
||||||
|
int i =1;
|
||||||
|
while(Serial.available()) {
|
||||||
|
delay(1);
|
||||||
|
RxCmd[i] = Serial.read();
|
||||||
|
//if (RxCmd[i]>127 || i>7) break; //Communication error
|
||||||
|
if (RxCmd[i]==ETX) {
|
||||||
|
break; //Read all data
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
if (Serial.available()) {
|
||||||
|
delay(2);
|
||||||
|
RxCmd[0] = Serial.read();
|
||||||
|
if (RxCmd[0] == '<') {
|
||||||
|
int i =1;
|
||||||
|
while(Serial.available()) {
|
||||||
|
delay(1);
|
||||||
|
RxCmd[i] = Serial.read();
|
||||||
|
//if (RxCmd[i]>127 || i>7) break; //Communication error
|
||||||
|
if (RxCmd[i]== '>') {
|
||||||
|
break; //Read all data
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( RxCmd[1] == '1' ){
|
||||||
|
switch (RxCmd[2]) {
|
||||||
|
case '1':{ // Pumpe an
|
||||||
|
pinMode(MOTOR1,HIGH);
|
||||||
|
pinMode(MOTOR2,HIGH);
|
||||||
|
Pumpe=2;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case '2':{ // Pumpe aus
|
||||||
|
pinMode(MOTOR1,HIGH);
|
||||||
|
pinMode(MOTOR2,LOW);
|
||||||
|
Pumpe=1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case '3':{ // Schlauchdaten anfordern
|
||||||
|
Serial.print('<');
|
||||||
|
Serial.print('#');
|
||||||
|
double mlpersec =( ml[tubid]*korrf*2)/6; // tube * 20 Um/min * korecturfaktor durch 60 sec
|
||||||
|
mlpersec = mlpersec*100000;
|
||||||
|
Serial.print(mlpersec); // Return PH Data
|
||||||
|
|
||||||
|
Serial.println('>');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case '4':{// PH - Daten anfordern
|
||||||
|
Serial.print('<');
|
||||||
|
Serial.print(PhValue,2); // Return PH Data
|
||||||
|
Serial.println('>');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (CurrentMode == 0){ // Nomral Display Mode
|
||||||
|
|
||||||
|
reading(); // Reading LM35 and PH Data for display
|
||||||
|
//lcd.setCursor(13,0);
|
||||||
|
//lcd.print("PH ");
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("Pumpe ");
|
||||||
|
lcd.setCursor(7,0);
|
||||||
|
lcd.print(Pumpe);
|
||||||
|
lcd.setCursor(0,1);
|
||||||
|
lcd.print(tub[tubid]);
|
||||||
|
|
||||||
|
//lcd.setCursor(0,0); // set the LCD cursor position
|
||||||
|
//lcd.print("Room");
|
||||||
|
//lcd.setCursor(0,1);
|
||||||
|
//lcd.print("Water");
|
||||||
|
//lcd.setCursor(6,0);
|
||||||
|
//lcd.print(TempValue); // display room temperature value (LM35)
|
||||||
|
delay(1); // delay in between reads for stability
|
||||||
|
|
||||||
|
// Display 18B20 Temperature
|
||||||
|
//lcd.setCursor(6,1); // move cursor to second line "1" and 6 spaces over
|
||||||
|
//sensors.requestTemperatures(); // Read DS18B20 data
|
||||||
|
//lcd.print(sensors.getTempCByIndex(0)); // Display DS18B20 Data
|
||||||
|
|
||||||
|
// Display PH Data
|
||||||
|
lcd.setCursor(13,0);
|
||||||
|
lcd.print("PH");
|
||||||
|
lcd.setCursor(12,1);
|
||||||
|
lcd.print(PhValue); // display PH value
|
||||||
|
delay(1); // delay in between reads for stability
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurrentMode == 1){ // Pumpe aus Kontrolle an
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("Pumpe aus >>");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurrentMode == 2){ // Pumpenkontrolle aus
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("Kontrolle aus >>");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurrentMode == 3){ // Pumpe an Kontrolle an
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("Pumpen an >>");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurrentMode == 4){ // PH4 Calibration Mode
|
||||||
|
reading();
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("PH4 Cal. Mode");
|
||||||
|
lcd.setCursor(0,1);
|
||||||
|
lcd.print("C:");
|
||||||
|
lcd.setCursor(2,1);
|
||||||
|
lcd.print(Ph4Reading);
|
||||||
|
lcd.setCursor(9,1);
|
||||||
|
lcd.print("R:");
|
||||||
|
lcd.setCursor(11,1);
|
||||||
|
lcd.print(PhAverage);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurrentMode == 5){ // PH7 Calibration Mode
|
||||||
|
reading();
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("PH7 Cal. Mode");
|
||||||
|
lcd.setCursor(0,1);
|
||||||
|
lcd.print("C:");
|
||||||
|
lcd.setCursor(2,1);
|
||||||
|
lcd.print(Ph7Reading);
|
||||||
|
lcd.setCursor(9,1);
|
||||||
|
lcd.print("R:");
|
||||||
|
lcd.setCursor(11,1);
|
||||||
|
lcd.print(PhAverage);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurrentMode == 6){ // Schlauchauswahl vorschlagen
|
||||||
|
lcd.clear();
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("Schlauch >>");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurrentMode == 10){ // Schlauchauswählen
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print(tub[tubid]);
|
||||||
|
lcd.setCursor(0,1);
|
||||||
|
lcd.print(ml[tubid]);
|
||||||
|
}
|
||||||
|
if (CurrentMode == 11){ // Auto modus läuft
|
||||||
|
reading(); // Reading LM35 and PH Data for display
|
||||||
|
time_flow=millis() - start_timer ;
|
||||||
|
flow = (20*time_flow)/60000; // vergangene sec
|
||||||
|
flow = ml[tubid]*flow*korrf; // ml/min
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("ml");
|
||||||
|
lcd.setCursor(0,1);
|
||||||
|
lcd.print(flow);
|
||||||
|
// Display PH Data
|
||||||
|
lcd.setCursor(13,0);
|
||||||
|
lcd.print("PH");
|
||||||
|
lcd.setCursor(12,1);
|
||||||
|
lcd.print(PhValue); // display PH value
|
||||||
|
delay(10); // delay in between reads for stability
|
||||||
|
|
||||||
|
}
|
||||||
|
if (CurrentMode == 12) { // Auto modus stopped
|
||||||
|
delay(100);
|
||||||
|
//reading();
|
||||||
|
//lcd.setCursor(4,0);
|
||||||
|
//lcd.print("Stop");
|
||||||
|
lcd.setCursor(0,0);
|
||||||
|
lcd.print("used ml");
|
||||||
|
lcd.setCursor(0,1);
|
||||||
|
lcd.print(flow);
|
||||||
|
// Display PH Data
|
||||||
|
lcd.setCursor(13,0);
|
||||||
|
lcd.print("PH");
|
||||||
|
lcd.setCursor(12,1);
|
||||||
|
lcd.print(PhValue); // display PH value
|
||||||
|
delay(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
lcd.setCursor(0,1); // move to the begining of the second line
|
||||||
|
adc_key_prev = lcd_key ; // Looking for changes
|
||||||
|
|
||||||
|
lcd_key = read_LCD_buttons(); // read the buttons
|
||||||
|
|
||||||
|
if (adc_key_prev != lcd_key)
|
||||||
|
{
|
||||||
|
switch (lcd_key){
|
||||||
|
case btnDOWN:{
|
||||||
|
if (CurrentMode==10){
|
||||||
|
tubid -=1;
|
||||||
|
if (tubid == -1){
|
||||||
|
tubid = MAXTUB;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
lcd.clear();
|
||||||
|
CurrentMode +=1;
|
||||||
|
if (CurrentMode == 7){
|
||||||
|
CurrentMode = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case btnUP:{
|
||||||
|
if (CurrentMode==10){
|
||||||
|
tubid += 1;
|
||||||
|
if (tubid == MAXTUB){
|
||||||
|
tubid=0;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
lcd.clear();
|
||||||
|
CurrentMode -= 1;
|
||||||
|
if (CurrentMode == -1){
|
||||||
|
CurrentMode = 6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case btnLEFT:{
|
||||||
|
lcd.clear();
|
||||||
|
CurrentMode =0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case btnRIGHT:{
|
||||||
|
lcd.clear();
|
||||||
|
if ( CurrentMode == 1){ //Pumpe aus
|
||||||
|
pinMode(MOTOR1,HIGH);
|
||||||
|
pinMode(MOTOR2,LOW);
|
||||||
|
Pumpe=1;
|
||||||
|
CurrentMode = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ( CurrentMode == 2) { //Pumpenkotrolle
|
||||||
|
pinMode(MOTOR1,LOW);
|
||||||
|
pinMode(MOTOR2,LOW);
|
||||||
|
Pumpe=0;
|
||||||
|
CurrentMode = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ( CurrentMode == 3) { //Pumpe an
|
||||||
|
pinMode(MOTOR1,HIGH);
|
||||||
|
pinMode(MOTOR2,HIGH);
|
||||||
|
Pumpe=2;
|
||||||
|
CurrentMode = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ( CurrentMode == 4) { //ph 4 wert speichern
|
||||||
|
Ph4Reading = (int) PhAverage;
|
||||||
|
Serial.println(Ph4Reading);
|
||||||
|
EEPROM.put(addrph4,Ph4Reading);
|
||||||
|
int p ;
|
||||||
|
EEPROM.get(addrph4,p);
|
||||||
|
Serial.println(p);
|
||||||
|
|
||||||
|
CurrentMode = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ( CurrentMode == 5) { //ph 7 wert speichern
|
||||||
|
Ph7Reading = (int) PhAverage;
|
||||||
|
Serial.println(Ph7Reading);
|
||||||
|
EEPROM.put(addrph7,Ph7Reading);
|
||||||
|
int p ;
|
||||||
|
EEPROM.get(addrph7,p);
|
||||||
|
Serial.println(p);
|
||||||
|
|
||||||
|
CurrentMode = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (CurrentMode == 6 ) { // nun die Schläuche auswählen
|
||||||
|
CurrentMode = 10;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ( CurrentMode == 10) { // Schlauchindex speichern
|
||||||
|
// todo
|
||||||
|
EEPROM.put(ee_tubid,tubid);
|
||||||
|
CurrentMode = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case btnSELECT:{
|
||||||
|
if (CurrentMode == 0){ // Automodus starten
|
||||||
|
pinMode(MOTOR1,HIGH);
|
||||||
|
pinMode(MOTOR2,HIGH);
|
||||||
|
lcd.clear();
|
||||||
|
start_timer = millis();
|
||||||
|
CurrentMode = 11;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (CurrentMode == 11){
|
||||||
|
pinMode(MOTOR1,HIGH);
|
||||||
|
pinMode(MOTOR2,LOW);
|
||||||
|
CurrentMode = 12;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (CurrentMode == 12){
|
||||||
|
CurrentMode = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// if (adc_key_prev != lcd_key)
|
||||||
|
// {
|
||||||
|
// //Serial.println("Key Press Change Detected");
|
||||||
|
// switch (lcd_key){ // depending on which button was pushed, we perform an action
|
||||||
|
// case btnRIGHT:{ // push button "RIGHT" and show the word on the screen
|
||||||
|
// //lcd.print("RIGHT");
|
||||||
|
// if ( CurrentMode == 0 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 2;
|
||||||
|
// }
|
||||||
|
// if ( CurrentMode == 3){
|
||||||
|
// lcd.clear();
|
||||||
|
// if ( CalSelect == 0 ){
|
||||||
|
// CurrentMode = 4;
|
||||||
|
// }
|
||||||
|
// if ( CalSelect == 1){
|
||||||
|
// CurrentMode = 5;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// case btnLEFT:{
|
||||||
|
// //lcd.print("LEFT "); // push button "LEFT" and show the word on the screen
|
||||||
|
// if ( CurrentMode == 2 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 0;
|
||||||
|
// }
|
||||||
|
// if ( CurrentMode == 3 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 0;
|
||||||
|
// }
|
||||||
|
// if ( CurrentMode == 4 || CurrentMode == 5 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 3;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// case btnUP:{
|
||||||
|
// //lcd.print("UP "); // push button "UP" and show the word on the screen
|
||||||
|
// if ( CurrentMode == 0 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 1;
|
||||||
|
// }
|
||||||
|
// if ( CurrentMode == 3 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CalSelect = 0;
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// case btnDOWN:{
|
||||||
|
// //lcd.print("DOWN "); // push button "DOWN" and show the word on the screen
|
||||||
|
// if ( CurrentMode == 1){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 0;
|
||||||
|
// }
|
||||||
|
// if ( CurrentMode == 3 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CalSelect = 1;
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// case btnSELECT:{
|
||||||
|
// //lcd.print("SEL. "); // push button "SELECT" and show the word on the screen
|
||||||
|
// if ( CurrentMode == 0 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 3;
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// if ( CurrentMode == 3 ){
|
||||||
|
// lcd.clear();
|
||||||
|
// CurrentMode = 0;
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// case btnNONE:{
|
||||||
|
// //lcd.print("NONE "); // No action will show "None" on the screen
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
||||||
340
LCD_Keypad_Shield_with_PH_Meter/LICENSE
Normal file
340
LCD_Keypad_Shield_with_PH_Meter/LICENSE
Normal file
@ -0,0 +1,340 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
{description}
|
||||||
|
Copyright (C) {year} {fullname}
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
{signature of Ty Coon}, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
||||||
|
|
||||||
12
LCD_Keypad_Shield_with_PH_Meter/README.md
Normal file
12
LCD_Keypad_Shield_with_PH_Meter/README.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# ArduinoPhMeter
|
||||||
|
For this project , that is build up a Arduino base PH meter for monitor PH , Water Temperature and Room Temperature.
|
||||||
|
Hardware that you should need is :
|
||||||
|
- Arduino UNO R3
|
||||||
|
- LCD Keypad Shield
|
||||||
|
- PH Meter Board
|
||||||
|
- 3D Printed Case
|
||||||
|
|
||||||
|
Feature :
|
||||||
|
- Show real time PH reading , Room and Water Temperature
|
||||||
|
- Use keypad for enter "Calibration Mode" for read the PH reading for PH calibration
|
||||||
|
- Serial Port communication via Arduino UNO USB port , send command to UNO for get back the PH and Temperature readings.
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
|
# Visual Basic Express 2010
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "SerialPortInterface", "SerialPortInterface\SerialPortInterface.vbproj", "{D2D4ACE6-2289-433C-996D-7773D4D5066A}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{D2D4ACE6-2289-433C-996D-7773D4D5066A}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{D2D4ACE6-2289-433C-996D-7773D4D5066A}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{D2D4ACE6-2289-433C-996D-7773D4D5066A}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{D2D4ACE6-2289-433C-996D-7773D4D5066A}.Release|x86.Build.0 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
Binary file not shown.
402
LCD_Keypad_Shield_with_PH_Meter/VB Sample Program/SerialPortInterface/Form1.Designer.vb
generated
Normal file
402
LCD_Keypad_Shield_with_PH_Meter/VB Sample Program/SerialPortInterface/Form1.Designer.vb
generated
Normal file
@ -0,0 +1,402 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||||
|
Partial Class frmMain
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
|
Private Sub InitializeComponent()
|
||||||
|
Me.components = New System.ComponentModel.Container()
|
||||||
|
Me.Label1 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label2 = New System.Windows.Forms.Label()
|
||||||
|
Me.cmbPort = New System.Windows.Forms.ComboBox()
|
||||||
|
Me.cmbBaud = New System.Windows.Forms.ComboBox()
|
||||||
|
Me.btnConnect = New System.Windows.Forms.Button()
|
||||||
|
Me.btnDisconnect = New System.Windows.Forms.Button()
|
||||||
|
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.CheckBoxPHlog = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.CheckBoxRTlog = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.CheckBoxWTlog = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.CheckBoxPHauto = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.CheckBoxRTauto = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.CheckBoxALLauto = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.Button1 = New System.Windows.Forms.Button()
|
||||||
|
Me.CheckBoxWTauto = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.bntReadAll = New System.Windows.Forms.Button()
|
||||||
|
Me.btnPh = New System.Windows.Forms.Button()
|
||||||
|
Me.btnRoomTemp = New System.Windows.Forms.Button()
|
||||||
|
Me.btnWaterTemp = New System.Windows.Forms.Button()
|
||||||
|
Me.GroupBox2 = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.rtbReceived = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.SerialPort1 = New System.IO.Ports.SerialPort(Me.components)
|
||||||
|
Me.Label3 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label4 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label5 = New System.Windows.Forms.Label()
|
||||||
|
Me.labelWaterTemperature = New System.Windows.Forms.Label()
|
||||||
|
Me.labelRoomTemperature = New System.Windows.Forms.Label()
|
||||||
|
Me.labelPhReading = New System.Windows.Forms.Label()
|
||||||
|
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
|
||||||
|
Me.MenuStrip1 = New System.Windows.Forms.MenuStrip()
|
||||||
|
Me.GroupBox1.SuspendLayout()
|
||||||
|
Me.GroupBox2.SuspendLayout()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'Label1
|
||||||
|
'
|
||||||
|
Me.Label1.AutoSize = True
|
||||||
|
Me.Label1.Location = New System.Drawing.Point(35, 36)
|
||||||
|
Me.Label1.Name = "Label1"
|
||||||
|
Me.Label1.Size = New System.Drawing.Size(53, 13)
|
||||||
|
Me.Label1.TabIndex = 0
|
||||||
|
Me.Label1.Text = "Com Port:"
|
||||||
|
'
|
||||||
|
'Label2
|
||||||
|
'
|
||||||
|
Me.Label2.AutoSize = True
|
||||||
|
Me.Label2.Location = New System.Drawing.Point(35, 73)
|
||||||
|
Me.Label2.Name = "Label2"
|
||||||
|
Me.Label2.Size = New System.Drawing.Size(61, 13)
|
||||||
|
Me.Label2.TabIndex = 1
|
||||||
|
Me.Label2.Text = "Baud Rate:"
|
||||||
|
'
|
||||||
|
'cmbPort
|
||||||
|
'
|
||||||
|
Me.cmbPort.FormattingEnabled = True
|
||||||
|
Me.cmbPort.Location = New System.Drawing.Point(108, 33)
|
||||||
|
Me.cmbPort.Name = "cmbPort"
|
||||||
|
Me.cmbPort.Size = New System.Drawing.Size(142, 21)
|
||||||
|
Me.cmbPort.TabIndex = 2
|
||||||
|
'
|
||||||
|
'cmbBaud
|
||||||
|
'
|
||||||
|
Me.cmbBaud.FormattingEnabled = True
|
||||||
|
Me.cmbBaud.Location = New System.Drawing.Point(108, 70)
|
||||||
|
Me.cmbBaud.Name = "cmbBaud"
|
||||||
|
Me.cmbBaud.Size = New System.Drawing.Size(142, 21)
|
||||||
|
Me.cmbBaud.TabIndex = 3
|
||||||
|
'
|
||||||
|
'btnConnect
|
||||||
|
'
|
||||||
|
Me.btnConnect.Location = New System.Drawing.Point(292, 33)
|
||||||
|
Me.btnConnect.Name = "btnConnect"
|
||||||
|
Me.btnConnect.Size = New System.Drawing.Size(70, 23)
|
||||||
|
Me.btnConnect.TabIndex = 4
|
||||||
|
Me.btnConnect.Text = "Connect"
|
||||||
|
Me.btnConnect.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnDisconnect
|
||||||
|
'
|
||||||
|
Me.btnDisconnect.Location = New System.Drawing.Point(292, 70)
|
||||||
|
Me.btnDisconnect.Name = "btnDisconnect"
|
||||||
|
Me.btnDisconnect.Size = New System.Drawing.Size(70, 23)
|
||||||
|
Me.btnDisconnect.TabIndex = 5
|
||||||
|
Me.btnDisconnect.Text = "Disconnect"
|
||||||
|
Me.btnDisconnect.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'GroupBox1
|
||||||
|
'
|
||||||
|
Me.GroupBox1.Controls.Add(Me.CheckBoxPHlog)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.CheckBoxRTlog)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.CheckBoxWTlog)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.CheckBoxPHauto)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.CheckBoxRTauto)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.CheckBoxALLauto)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.Button1)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.CheckBoxWTauto)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.bntReadAll)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.btnPh)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.btnRoomTemp)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.btnWaterTemp)
|
||||||
|
Me.GroupBox1.Enabled = False
|
||||||
|
Me.GroupBox1.Location = New System.Drawing.Point(17, 101)
|
||||||
|
Me.GroupBox1.Name = "GroupBox1"
|
||||||
|
Me.GroupBox1.Size = New System.Drawing.Size(361, 167)
|
||||||
|
Me.GroupBox1.TabIndex = 6
|
||||||
|
Me.GroupBox1.TabStop = False
|
||||||
|
Me.GroupBox1.Text = "Read Data"
|
||||||
|
'
|
||||||
|
'CheckBoxPHlog
|
||||||
|
'
|
||||||
|
Me.CheckBoxPHlog.AutoSize = True
|
||||||
|
Me.CheckBoxPHlog.Location = New System.Drawing.Point(254, 91)
|
||||||
|
Me.CheckBoxPHlog.Name = "CheckBoxPHlog"
|
||||||
|
Me.CheckBoxPHlog.Size = New System.Drawing.Size(44, 17)
|
||||||
|
Me.CheckBoxPHlog.TabIndex = 13
|
||||||
|
Me.CheckBoxPHlog.Text = "Log"
|
||||||
|
Me.CheckBoxPHlog.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'CheckBoxRTlog
|
||||||
|
'
|
||||||
|
Me.CheckBoxRTlog.AutoSize = True
|
||||||
|
Me.CheckBoxRTlog.Location = New System.Drawing.Point(254, 62)
|
||||||
|
Me.CheckBoxRTlog.Name = "CheckBoxRTlog"
|
||||||
|
Me.CheckBoxRTlog.Size = New System.Drawing.Size(44, 17)
|
||||||
|
Me.CheckBoxRTlog.TabIndex = 12
|
||||||
|
Me.CheckBoxRTlog.Text = "Log"
|
||||||
|
Me.CheckBoxRTlog.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'CheckBoxWTlog
|
||||||
|
'
|
||||||
|
Me.CheckBoxWTlog.AutoSize = True
|
||||||
|
Me.CheckBoxWTlog.Location = New System.Drawing.Point(254, 31)
|
||||||
|
Me.CheckBoxWTlog.Name = "CheckBoxWTlog"
|
||||||
|
Me.CheckBoxWTlog.Size = New System.Drawing.Size(44, 17)
|
||||||
|
Me.CheckBoxWTlog.TabIndex = 11
|
||||||
|
Me.CheckBoxWTlog.Text = "Log"
|
||||||
|
Me.CheckBoxWTlog.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'CheckBoxPHauto
|
||||||
|
'
|
||||||
|
Me.CheckBoxPHauto.AutoSize = True
|
||||||
|
Me.CheckBoxPHauto.Location = New System.Drawing.Point(158, 91)
|
||||||
|
Me.CheckBoxPHauto.Name = "CheckBoxPHauto"
|
||||||
|
Me.CheckBoxPHauto.Size = New System.Drawing.Size(82, 17)
|
||||||
|
Me.CheckBoxPHauto.TabIndex = 9
|
||||||
|
Me.CheckBoxPHauto.Text = "Auto Polling"
|
||||||
|
Me.CheckBoxPHauto.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'CheckBoxRTauto
|
||||||
|
'
|
||||||
|
Me.CheckBoxRTauto.AutoSize = True
|
||||||
|
Me.CheckBoxRTauto.Location = New System.Drawing.Point(158, 62)
|
||||||
|
Me.CheckBoxRTauto.Name = "CheckBoxRTauto"
|
||||||
|
Me.CheckBoxRTauto.Size = New System.Drawing.Size(82, 17)
|
||||||
|
Me.CheckBoxRTauto.TabIndex = 8
|
||||||
|
Me.CheckBoxRTauto.Text = "Auto Polling"
|
||||||
|
Me.CheckBoxRTauto.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'CheckBoxALLauto
|
||||||
|
'
|
||||||
|
Me.CheckBoxALLauto.AutoSize = True
|
||||||
|
Me.CheckBoxALLauto.Location = New System.Drawing.Point(158, 121)
|
||||||
|
Me.CheckBoxALLauto.Name = "CheckBoxALLauto"
|
||||||
|
Me.CheckBoxALLauto.Size = New System.Drawing.Size(82, 17)
|
||||||
|
Me.CheckBoxALLauto.TabIndex = 7
|
||||||
|
Me.CheckBoxALLauto.TabStop = False
|
||||||
|
Me.CheckBoxALLauto.Text = "Auto Polling"
|
||||||
|
Me.CheckBoxALLauto.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'Button1
|
||||||
|
'
|
||||||
|
Me.Button1.Location = New System.Drawing.Point(274, 139)
|
||||||
|
Me.Button1.Name = "Button1"
|
||||||
|
Me.Button1.Size = New System.Drawing.Size(65, 22)
|
||||||
|
Me.Button1.TabIndex = 6
|
||||||
|
Me.Button1.Text = "Clear"
|
||||||
|
Me.Button1.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'CheckBoxWTauto
|
||||||
|
'
|
||||||
|
Me.CheckBoxWTauto.AutoSize = True
|
||||||
|
Me.CheckBoxWTauto.Location = New System.Drawing.Point(158, 31)
|
||||||
|
Me.CheckBoxWTauto.Name = "CheckBoxWTauto"
|
||||||
|
Me.CheckBoxWTauto.Size = New System.Drawing.Size(82, 17)
|
||||||
|
Me.CheckBoxWTauto.TabIndex = 5
|
||||||
|
Me.CheckBoxWTauto.Text = "Auto Polling"
|
||||||
|
Me.CheckBoxWTauto.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'bntReadAll
|
||||||
|
'
|
||||||
|
Me.bntReadAll.Location = New System.Drawing.Point(21, 117)
|
||||||
|
Me.bntReadAll.Name = "bntReadAll"
|
||||||
|
Me.bntReadAll.Size = New System.Drawing.Size(116, 23)
|
||||||
|
Me.bntReadAll.TabIndex = 4
|
||||||
|
Me.bntReadAll.Text = "Read All"
|
||||||
|
Me.bntReadAll.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnPh
|
||||||
|
'
|
||||||
|
Me.btnPh.Location = New System.Drawing.Point(21, 87)
|
||||||
|
Me.btnPh.Name = "btnPh"
|
||||||
|
Me.btnPh.Size = New System.Drawing.Size(116, 23)
|
||||||
|
Me.btnPh.TabIndex = 3
|
||||||
|
Me.btnPh.Text = "PH Reading"
|
||||||
|
Me.btnPh.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnRoomTemp
|
||||||
|
'
|
||||||
|
Me.btnRoomTemp.Location = New System.Drawing.Point(21, 57)
|
||||||
|
Me.btnRoomTemp.Name = "btnRoomTemp"
|
||||||
|
Me.btnRoomTemp.Size = New System.Drawing.Size(116, 23)
|
||||||
|
Me.btnRoomTemp.TabIndex = 2
|
||||||
|
Me.btnRoomTemp.Text = "Room Temperature"
|
||||||
|
Me.btnRoomTemp.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnWaterTemp
|
||||||
|
'
|
||||||
|
Me.btnWaterTemp.Location = New System.Drawing.Point(21, 27)
|
||||||
|
Me.btnWaterTemp.Name = "btnWaterTemp"
|
||||||
|
Me.btnWaterTemp.Size = New System.Drawing.Size(116, 23)
|
||||||
|
Me.btnWaterTemp.TabIndex = 1
|
||||||
|
Me.btnWaterTemp.Text = "Water Temperature"
|
||||||
|
Me.btnWaterTemp.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'GroupBox2
|
||||||
|
'
|
||||||
|
Me.GroupBox2.Controls.Add(Me.rtbReceived)
|
||||||
|
Me.GroupBox2.Location = New System.Drawing.Point(17, 274)
|
||||||
|
Me.GroupBox2.Name = "GroupBox2"
|
||||||
|
Me.GroupBox2.Size = New System.Drawing.Size(359, 192)
|
||||||
|
Me.GroupBox2.TabIndex = 7
|
||||||
|
Me.GroupBox2.TabStop = False
|
||||||
|
Me.GroupBox2.Text = "Received Data"
|
||||||
|
'
|
||||||
|
'rtbReceived
|
||||||
|
'
|
||||||
|
Me.rtbReceived.Location = New System.Drawing.Point(19, 20)
|
||||||
|
Me.rtbReceived.Name = "rtbReceived"
|
||||||
|
Me.rtbReceived.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical
|
||||||
|
Me.rtbReceived.Size = New System.Drawing.Size(320, 164)
|
||||||
|
Me.rtbReceived.TabIndex = 0
|
||||||
|
Me.rtbReceived.Text = ""
|
||||||
|
'
|
||||||
|
'SerialPort1
|
||||||
|
'
|
||||||
|
Me.SerialPort1.ReceivedBytesThreshold = 6
|
||||||
|
'
|
||||||
|
'Label3
|
||||||
|
'
|
||||||
|
Me.Label3.AutoSize = True
|
||||||
|
Me.Label3.Location = New System.Drawing.Point(34, 520)
|
||||||
|
Me.Label3.Name = "Label3"
|
||||||
|
Me.Label3.Size = New System.Drawing.Size(98, 13)
|
||||||
|
Me.Label3.TabIndex = 8
|
||||||
|
Me.Label3.Text = "Room Temperature"
|
||||||
|
'
|
||||||
|
'Label4
|
||||||
|
'
|
||||||
|
Me.Label4.AutoSize = True
|
||||||
|
Me.Label4.Location = New System.Drawing.Point(35, 487)
|
||||||
|
Me.Label4.Name = "Label4"
|
||||||
|
Me.Label4.Size = New System.Drawing.Size(99, 13)
|
||||||
|
Me.Label4.TabIndex = 9
|
||||||
|
Me.Label4.Text = "Water Temperature"
|
||||||
|
'
|
||||||
|
'Label5
|
||||||
|
'
|
||||||
|
Me.Label5.AutoSize = True
|
||||||
|
Me.Label5.Location = New System.Drawing.Point(35, 550)
|
||||||
|
Me.Label5.Name = "Label5"
|
||||||
|
Me.Label5.Size = New System.Drawing.Size(22, 13)
|
||||||
|
Me.Label5.TabIndex = 10
|
||||||
|
Me.Label5.Text = "PH"
|
||||||
|
'
|
||||||
|
'labelWaterTemperature
|
||||||
|
'
|
||||||
|
Me.labelWaterTemperature.AutoSize = True
|
||||||
|
Me.labelWaterTemperature.Location = New System.Drawing.Point(190, 487)
|
||||||
|
Me.labelWaterTemperature.Name = "labelWaterTemperature"
|
||||||
|
Me.labelWaterTemperature.Size = New System.Drawing.Size(13, 13)
|
||||||
|
Me.labelWaterTemperature.TabIndex = 11
|
||||||
|
Me.labelWaterTemperature.Text = "0"
|
||||||
|
'
|
||||||
|
'labelRoomTemperature
|
||||||
|
'
|
||||||
|
Me.labelRoomTemperature.AutoSize = True
|
||||||
|
Me.labelRoomTemperature.Location = New System.Drawing.Point(190, 520)
|
||||||
|
Me.labelRoomTemperature.Name = "labelRoomTemperature"
|
||||||
|
Me.labelRoomTemperature.Size = New System.Drawing.Size(13, 13)
|
||||||
|
Me.labelRoomTemperature.TabIndex = 12
|
||||||
|
Me.labelRoomTemperature.Text = "0"
|
||||||
|
'
|
||||||
|
'labelPhReading
|
||||||
|
'
|
||||||
|
Me.labelPhReading.AutoSize = True
|
||||||
|
Me.labelPhReading.Location = New System.Drawing.Point(190, 550)
|
||||||
|
Me.labelPhReading.Name = "labelPhReading"
|
||||||
|
Me.labelPhReading.Size = New System.Drawing.Size(13, 13)
|
||||||
|
Me.labelPhReading.TabIndex = 13
|
||||||
|
Me.labelPhReading.Text = "0"
|
||||||
|
'
|
||||||
|
'Timer1
|
||||||
|
'
|
||||||
|
Me.Timer1.Interval = 5000
|
||||||
|
'
|
||||||
|
'MenuStrip1
|
||||||
|
'
|
||||||
|
Me.MenuStrip1.Location = New System.Drawing.Point(0, 0)
|
||||||
|
Me.MenuStrip1.Name = "MenuStrip1"
|
||||||
|
Me.MenuStrip1.Size = New System.Drawing.Size(396, 24)
|
||||||
|
Me.MenuStrip1.TabIndex = 14
|
||||||
|
Me.MenuStrip1.Text = "MenuStrip1"
|
||||||
|
'
|
||||||
|
'frmMain
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(396, 580)
|
||||||
|
Me.Controls.Add(Me.labelPhReading)
|
||||||
|
Me.Controls.Add(Me.labelRoomTemperature)
|
||||||
|
Me.Controls.Add(Me.labelWaterTemperature)
|
||||||
|
Me.Controls.Add(Me.Label5)
|
||||||
|
Me.Controls.Add(Me.Label4)
|
||||||
|
Me.Controls.Add(Me.Label3)
|
||||||
|
Me.Controls.Add(Me.GroupBox2)
|
||||||
|
Me.Controls.Add(Me.GroupBox1)
|
||||||
|
Me.Controls.Add(Me.btnDisconnect)
|
||||||
|
Me.Controls.Add(Me.btnConnect)
|
||||||
|
Me.Controls.Add(Me.cmbBaud)
|
||||||
|
Me.Controls.Add(Me.cmbPort)
|
||||||
|
Me.Controls.Add(Me.Label2)
|
||||||
|
Me.Controls.Add(Me.Label1)
|
||||||
|
Me.Controls.Add(Me.MenuStrip1)
|
||||||
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
|
||||||
|
Me.MainMenuStrip = Me.MenuStrip1
|
||||||
|
Me.MaximizeBox = False
|
||||||
|
Me.Name = "frmMain"
|
||||||
|
Me.Text = "Arduino PH Meter"
|
||||||
|
Me.GroupBox1.ResumeLayout(False)
|
||||||
|
Me.GroupBox1.PerformLayout()
|
||||||
|
Me.GroupBox2.ResumeLayout(False)
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
Friend WithEvents Label1 As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents Label2 As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents cmbPort As System.Windows.Forms.ComboBox
|
||||||
|
Friend WithEvents cmbBaud As System.Windows.Forms.ComboBox
|
||||||
|
Friend WithEvents btnConnect As System.Windows.Forms.Button
|
||||||
|
Friend WithEvents btnDisconnect As System.Windows.Forms.Button
|
||||||
|
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents btnWaterTemp As System.Windows.Forms.Button
|
||||||
|
Friend WithEvents rtbReceived As System.Windows.Forms.RichTextBox
|
||||||
|
Friend WithEvents SerialPort1 As System.IO.Ports.SerialPort
|
||||||
|
Friend WithEvents btnRoomTemp As System.Windows.Forms.Button
|
||||||
|
Friend WithEvents btnPh As System.Windows.Forms.Button
|
||||||
|
Friend WithEvents bntReadAll As System.Windows.Forms.Button
|
||||||
|
Friend WithEvents CheckBoxWTauto As System.Windows.Forms.CheckBox
|
||||||
|
Friend WithEvents Label3 As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents Label4 As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents Label5 As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents labelWaterTemperature As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents labelRoomTemperature As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents labelPhReading As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents Timer1 As System.Windows.Forms.Timer
|
||||||
|
Friend WithEvents Button1 As System.Windows.Forms.Button
|
||||||
|
Friend WithEvents CheckBoxALLauto As System.Windows.Forms.CheckBox
|
||||||
|
Friend WithEvents CheckBoxRTauto As System.Windows.Forms.CheckBox
|
||||||
|
Friend WithEvents CheckBoxPHauto As System.Windows.Forms.CheckBox
|
||||||
|
Friend WithEvents CheckBoxWTlog As System.Windows.Forms.CheckBox
|
||||||
|
Friend WithEvents CheckBoxPHlog As System.Windows.Forms.CheckBox
|
||||||
|
Friend WithEvents CheckBoxRTlog As System.Windows.Forms.CheckBox
|
||||||
|
Friend WithEvents MenuStrip1 As System.Windows.Forms.MenuStrip
|
||||||
|
|
||||||
|
End Class
|
||||||
@ -0,0 +1,129 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="SerialPort1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="Timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>129, 18</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>221, 18</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
@ -0,0 +1,350 @@
|
|||||||
|
'Serial Port Interfacing with VB.net 2010 Express Edition
|
||||||
|
'Copyright (C) 2010 Richard Myrick T. Arellaga
|
||||||
|
'
|
||||||
|
'This program is free software: you can redistribute it and/or modify
|
||||||
|
'it under the terms of the GNU General Public License as published by
|
||||||
|
'the Free Software Foundation, either version 3 of the License, or
|
||||||
|
'(at your option) any later version.
|
||||||
|
'
|
||||||
|
'This program is distributed in the hope that it will be useful,
|
||||||
|
'but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
'GNU General Public License for more details.
|
||||||
|
'
|
||||||
|
' You should have received a copy of the GNU General Public License
|
||||||
|
' along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
Imports System.ComponentModel
|
||||||
|
Imports System.Threading
|
||||||
|
Imports System.IO.Ports
|
||||||
|
Public Class frmMain
|
||||||
|
Dim myPort As Array 'COM Ports detected on the system will be stored here
|
||||||
|
Delegate Sub SetTextCallback(ByVal [text] As String) 'Added to prevent threading errors during receiveing of data
|
||||||
|
|
||||||
|
Dim Buffer(4) As Byte
|
||||||
|
Dim CommandSend As String
|
||||||
|
Dim AllIndex As String
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||||
|
'When our form loads, auto detect all serial ports in the system and populate the cmbPort Combo box.
|
||||||
|
myPort = IO.Ports.SerialPort.GetPortNames() 'Get all com ports available
|
||||||
|
cmbBaud.Items.Add(9600) 'Populate the cmbBaud Combo box to common baud rates used
|
||||||
|
|
||||||
|
For i = 0 To UBound(myPort)
|
||||||
|
cmbPort.Items.Add(myPort(i))
|
||||||
|
Next
|
||||||
|
cmbPort.Text = cmbPort.Items.Item(0) 'Set cmbPort text to the first COM port detected
|
||||||
|
cmbBaud.Text = cmbBaud.Items.Item(0) 'Set cmbBaud text to the first Baud rate on the list
|
||||||
|
|
||||||
|
btnDisconnect.Enabled = False 'Initially Disconnect Button is Disabled
|
||||||
|
|
||||||
|
Me.Text =
|
||||||
|
System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString() & " " & _
|
||||||
|
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click
|
||||||
|
SerialPort1.PortName = cmbPort.Text 'Set SerialPort1 to the selected COM port at startup
|
||||||
|
SerialPort1.BaudRate = cmbBaud.Text 'Set Baud rate to the selected value on
|
||||||
|
|
||||||
|
'Other Serial Port Property
|
||||||
|
SerialPort1.Parity = IO.Ports.Parity.None
|
||||||
|
SerialPort1.StopBits = IO.Ports.StopBits.One
|
||||||
|
SerialPort1.DataBits = 8 'Open our serial port
|
||||||
|
SerialPort1.Open()
|
||||||
|
|
||||||
|
btnConnect.Enabled = False 'Disable Connect button
|
||||||
|
btnDisconnect.Enabled = True 'and Enable Disconnect button
|
||||||
|
GroupBox1.Enabled = True
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnDisconnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisconnect.Click
|
||||||
|
SerialPort1.Close() 'Close our Serial Port
|
||||||
|
|
||||||
|
btnConnect.Enabled = True
|
||||||
|
btnDisconnect.Enabled = False
|
||||||
|
GroupBox1.Enabled = False
|
||||||
|
Timer1.Enabled = False
|
||||||
|
CheckBoxWTauto.Checked = False
|
||||||
|
CheckBoxRTauto.Checked = False
|
||||||
|
CheckBoxPHauto.Checked = False
|
||||||
|
CheckBoxALLauto.Checked = False
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnWaterTemp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnWaterTemp.Click
|
||||||
|
|
||||||
|
'AA 01 01 BB , Enquiry DS18B20 temperature
|
||||||
|
'AA 01 02 BB , Enquiry LM35 temperature
|
||||||
|
'AA 01 03 BB , Enquiry PH reading
|
||||||
|
'AA 01 04 BB , Enqyiry DS18B20 , LM35 and Ph
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H1
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "WT" 'Enquiry Water Temperature Command Send
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
|
||||||
|
'ReceivedText(SerialPort1.ReadExisting()) 'Automatically called every time a data is received at the serialPort
|
||||||
|
ReceivedText(SerialPort1.ReadTo(Chr(10))) ' Read until New Line Char(10)
|
||||||
|
End Sub
|
||||||
|
Private Sub ReceivedText(ByVal [text] As String)
|
||||||
|
'compares the ID of the creating Thread to the ID of the calling Thread
|
||||||
|
If Me.rtbReceived.InvokeRequired Then
|
||||||
|
Dim x As New SetTextCallback(AddressOf ReceivedText)
|
||||||
|
Me.Invoke(x, New Object() {(text)})
|
||||||
|
Else
|
||||||
|
'Me.rtbReceived.Text &= [text]
|
||||||
|
Dim newString As String = [text].Replace(vbCr, "") 'Remove Carriage Return
|
||||||
|
Dim y As String
|
||||||
|
Select Case CommandSend
|
||||||
|
Case "WT"
|
||||||
|
y = " Water Temperature : "
|
||||||
|
Me.labelWaterTemperature.Text = newString
|
||||||
|
If CheckBoxWTlog.Checked = True Then
|
||||||
|
Dim file As System.IO.StreamWriter
|
||||||
|
file = My.Computer.FileSystem.OpenTextFileWriter("c:\temp\water.csv", True)
|
||||||
|
file.WriteLine(Format(TimeOfDay, "HH:mm:ss") + "," + newString)
|
||||||
|
file.Close()
|
||||||
|
End If
|
||||||
|
Case "RT"
|
||||||
|
y = " Room Temperature : "
|
||||||
|
Me.labelRoomTemperature.Text = newString
|
||||||
|
If CheckBoxWTlog.Checked = True Then
|
||||||
|
Dim file As System.IO.StreamWriter
|
||||||
|
file = My.Computer.FileSystem.OpenTextFileWriter("c:\temp\room.csv", True)
|
||||||
|
file.WriteLine(Format(TimeOfDay, "HH:mm:ss") + "," + newString)
|
||||||
|
file.Close()
|
||||||
|
End If
|
||||||
|
Case "PH"
|
||||||
|
y = " PH : "
|
||||||
|
If CheckBoxWTlog.Checked = True Then
|
||||||
|
Dim file As System.IO.StreamWriter
|
||||||
|
file = My.Computer.FileSystem.OpenTextFileWriter("c:\temp\ph.csv", True)
|
||||||
|
file.WriteLine(Format(TimeOfDay, "HH:mm:ss") + "," + newString)
|
||||||
|
file.Close()
|
||||||
|
End If
|
||||||
|
Me.labelPhReading.Text = newString
|
||||||
|
Case "ALL"
|
||||||
|
Select Case AllIndex
|
||||||
|
Case "1"
|
||||||
|
y = " Water Temperature : "
|
||||||
|
Me.labelWaterTemperature.Text = newString
|
||||||
|
If CheckBoxWTlog.Checked = True Then
|
||||||
|
Dim file As System.IO.StreamWriter
|
||||||
|
file = My.Computer.FileSystem.OpenTextFileWriter("c:\temp\water.csv", True)
|
||||||
|
file.WriteLine(Format(TimeOfDay, "HH:mm:ss") + "," + newString)
|
||||||
|
file.Close()
|
||||||
|
End If
|
||||||
|
AllIndex = "2"
|
||||||
|
Case "2"
|
||||||
|
y = " Room Temperature : "
|
||||||
|
Me.labelRoomTemperature.Text = newString
|
||||||
|
If CheckBoxWTlog.Checked = True Then
|
||||||
|
Dim file As System.IO.StreamWriter
|
||||||
|
file = My.Computer.FileSystem.OpenTextFileWriter("c:\temp\room.csv", True)
|
||||||
|
file.WriteLine(Format(TimeOfDay, "HH:mm:ss") + "," + newString)
|
||||||
|
file.Close()
|
||||||
|
End If
|
||||||
|
AllIndex = "3"
|
||||||
|
Case "3"
|
||||||
|
y = " PH : "
|
||||||
|
Me.labelPhReading.Text = newString
|
||||||
|
If CheckBoxWTlog.Checked = True Then
|
||||||
|
Dim file As System.IO.StreamWriter
|
||||||
|
file = My.Computer.FileSystem.OpenTextFileWriter("c:\temp\ph.csv", True)
|
||||||
|
file.WriteLine(Format(TimeOfDay, "HH:mm:ss") + "," + newString)
|
||||||
|
file.Close()
|
||||||
|
End If
|
||||||
|
AllIndex = ""
|
||||||
|
Case Else
|
||||||
|
y = " Invaild Command Send "
|
||||||
|
End Select
|
||||||
|
Case Else
|
||||||
|
y = " Invaild Command Send "
|
||||||
|
End Select
|
||||||
|
|
||||||
|
|
||||||
|
Me.rtbReceived.AppendText(Format(TimeOfDay, "HH:mm:ss") + y + newString + vbCrLf)
|
||||||
|
Me.rtbReceived.ScrollToCaret()
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub cmbPort_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbPort.SelectedIndexChanged
|
||||||
|
If SerialPort1.IsOpen = False Then
|
||||||
|
SerialPort1.PortName = cmbPort.Text 'pop a message box to user if he is changing ports
|
||||||
|
Else 'without disconnecting first.
|
||||||
|
MsgBox("Valid only if port is Closed", vbCritical)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub cmbBaud_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbBaud.SelectedIndexChanged
|
||||||
|
If SerialPort1.IsOpen = False Then
|
||||||
|
SerialPort1.BaudRate = cmbBaud.Text 'pop a message box to user if he is changing baud rate
|
||||||
|
Else 'without disconnecting first.
|
||||||
|
MsgBox("Valid only if port is Closed", vbCritical)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTransmit_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub btnRoomTemp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRoomTemp.Click
|
||||||
|
'AA 01 01 BB , Enquiry DS18B20 temperature
|
||||||
|
'AA 01 02 BB , Enquiry LM35 temperature
|
||||||
|
'AA 01 03 BB , Enquiry PH reading
|
||||||
|
'AA 01 04 BB , Enqyiry DS18B20 , LM35 and Ph
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H2
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "RT" 'Enquiry Room Temperature Command Send
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnPh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPh.Click
|
||||||
|
'AA 01 01 BB , Enquiry DS18B20 temperature
|
||||||
|
'AA 01 02 BB , Enquiry LM35 temperature
|
||||||
|
'AA 01 03 BB , Enquiry PH reading
|
||||||
|
'AA 01 04 BB , Enqyiry DS18B20 , LM35 and Ph
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H3
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "PH" 'Enquiry PH Command Send
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub bntReadAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bntReadAll.Click
|
||||||
|
'AA 01 01 BB , Enquiry DS18B20 temperature
|
||||||
|
'AA 01 02 BB , Enquiry LM35 temperature
|
||||||
|
'AA 01 03 BB , Enquiry PH reading
|
||||||
|
'AA 01 04 BB , Enqyiry DS18B20 , LM35 and Ph
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H4
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "ALL" 'Enquiry All Command Send
|
||||||
|
AllIndex = "1"
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub rtbReceived_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rtbReceived.TextChanged
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CheckBoxWTauto_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBoxWTauto.CheckedChanged
|
||||||
|
If CheckBoxWTauto.Checked = True Then
|
||||||
|
CheckBoxRTauto.Checked = False
|
||||||
|
CheckBoxPHauto.Checked = False
|
||||||
|
Timer1.Enabled = True
|
||||||
|
Else
|
||||||
|
Timer1.Enabled = False
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
|
||||||
|
|
||||||
|
'AA 01 01 BB , Enquiry DS18B20 temperature
|
||||||
|
'AA 01 02 BB , Enquiry LM35 temperature
|
||||||
|
'AA 01 03 BB , Enquiry PH reading
|
||||||
|
'AA 01 04 BB , Enqyiry DS18B20 , LM35 and Ph
|
||||||
|
|
||||||
|
If CheckBoxWTauto.Checked = True Then
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H1
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "WT" 'Enquiry Water Temperature Command Send
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CheckBoxRTauto.Checked = True Then
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H2
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "RT" 'Enquiry Room Temperature Command Send
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CheckBoxPHauto.Checked = True Then
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H3
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "PH" 'Enquiry PH Command Send
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CheckBoxALLauto.Checked = True Then
|
||||||
|
Buffer(0) = &HAA
|
||||||
|
Buffer(1) = &H1
|
||||||
|
Buffer(2) = &H4
|
||||||
|
Buffer(3) = &HBB
|
||||||
|
SerialPort1.Write(Buffer, 0, 3)
|
||||||
|
CommandSend = "ALL" 'Enquiry All Command Send
|
||||||
|
AllIndex = "1"
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
|
||||||
|
Me.rtbReceived.Text = ""
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CheckBoxALLauto_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBoxALLauto.CheckedChanged
|
||||||
|
If CheckBoxALLauto.Checked = True Then
|
||||||
|
CheckBoxWTauto.Checked = False
|
||||||
|
CheckBoxWTauto.Enabled = False
|
||||||
|
CheckBoxRTauto.Checked = False
|
||||||
|
CheckBoxRTauto.Enabled = False
|
||||||
|
CheckBoxPHauto.Checked = False
|
||||||
|
CheckBoxPHauto.Enabled = False
|
||||||
|
Timer1.Enabled = True
|
||||||
|
Else
|
||||||
|
CheckBoxWTauto.Enabled = True
|
||||||
|
CheckBoxRTauto.Enabled = True
|
||||||
|
CheckBoxPHauto.Enabled = True
|
||||||
|
Timer1.Enabled = False
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CheckBoxRTauto_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBoxRTauto.CheckedChanged
|
||||||
|
|
||||||
|
If CheckBoxRTauto.Checked = True Then
|
||||||
|
CheckBoxWTauto.Checked = False
|
||||||
|
CheckBoxPHauto.Checked = False
|
||||||
|
Timer1.Enabled = True
|
||||||
|
Else
|
||||||
|
Timer1.Enabled = False
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CheckBoxPHauto_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBoxPHauto.CheckedChanged
|
||||||
|
|
||||||
|
If CheckBoxPHauto.Checked = True Then
|
||||||
|
CheckBoxWTauto.Checked = False
|
||||||
|
CheckBoxRTauto.Checked = False
|
||||||
|
Timer1.Enabled = True
|
||||||
|
Else
|
||||||
|
Timer1.Enabled = False
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
End Class
|
||||||
@ -0,0 +1,621 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' This code was generated by a tool.
|
||||||
|
' Runtime Version:4.0.30319.17929
|
||||||
|
'
|
||||||
|
' Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
' the code is regenerated.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
|
||||||
|
' or if you encounter build errors in this file, go to the Project Designer
|
||||||
|
' (go to Project Properties or double-click the My Project node in
|
||||||
|
' Solution Explorer), and make changes on the Application tab.
|
||||||
|
'
|
||||||
|
Partial Friend Class MyApplication
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||||
|
Me.IsSingleInstance = false
|
||||||
|
Me.EnableVisualStyles = true
|
||||||
|
Me.SaveMySettingsOnExit = true
|
||||||
|
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||||
|
Protected Overrides Sub OnCreateMainForm()
|
||||||
|
Me.MainForm = Global.ArduinoPhMeter.frmMain
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-16"?>
|
||||||
|
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<MySubMain>true</MySubMain>
|
||||||
|
<MainForm>frmMain</MainForm>
|
||||||
|
<SingleInstance>false</SingleInstance>
|
||||||
|
<ShutdownMode>0</ShutdownMode>
|
||||||
|
<EnableVisualStyles>true</EnableVisualStyles>
|
||||||
|
<AuthenticationMode>0</AuthenticationMode>
|
||||||
|
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||||
|
</MyApplicationData>
|
||||||
@ -0,0 +1,35 @@
|
|||||||
|
Imports System
|
||||||
|
Imports System.Reflection
|
||||||
|
Imports System.Runtime.InteropServices
|
||||||
|
|
||||||
|
' General Information about an assembly is controlled through the following
|
||||||
|
' set of attributes. Change these attribute values to modify the information
|
||||||
|
' associated with an assembly.
|
||||||
|
|
||||||
|
' Review the values of the assembly attributes
|
||||||
|
|
||||||
|
<Assembly: AssemblyTitle("Arduino PH Meter")>
|
||||||
|
<Assembly: AssemblyDescription("")>
|
||||||
|
<Assembly: AssemblyCompany("Automation At Home Co.,")>
|
||||||
|
<Assembly: AssemblyProduct("Arduino PH Meter")>
|
||||||
|
<Assembly: AssemblyCopyright("Copyright © 2015")>
|
||||||
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
|
<Assembly: ComVisible(False)>
|
||||||
|
|
||||||
|
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
<Assembly: Guid("b6180b0c-eacb-4e63-bfba-1506d435c1e0")>
|
||||||
|
|
||||||
|
' Version information for an assembly consists of the following four values:
|
||||||
|
'
|
||||||
|
' Major Version
|
||||||
|
' Minor Version
|
||||||
|
' Build Number
|
||||||
|
' Revision
|
||||||
|
'
|
||||||
|
' You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
' by using the '*' as shown below:
|
||||||
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
|
<Assembly: AssemblyVersion("1.0.0.0")>
|
||||||
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' This code was generated by a tool.
|
||||||
|
' Runtime Version:4.0.30319.17929
|
||||||
|
'
|
||||||
|
' Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
' the code is regenerated.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
|
||||||
|
Namespace My.Resources
|
||||||
|
|
||||||
|
'This class was auto-generated by the StronglyTypedResourceBuilder
|
||||||
|
'class via a tool like ResGen or Visual Studio.
|
||||||
|
'To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
|
'with the /str option, or rebuild your VS project.
|
||||||
|
'''<summary>
|
||||||
|
''' A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
|
Friend Module Resources
|
||||||
|
|
||||||
|
Private resourceMan As Global.System.Resources.ResourceManager
|
||||||
|
|
||||||
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Returns the cached ResourceManager instance used by this class.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
|
Get
|
||||||
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ArduinoPhMeter.Resources", GetType(Resources).Assembly)
|
||||||
|
resourceMan = temp
|
||||||
|
End If
|
||||||
|
Return resourceMan
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Overrides the current thread's CurrentUICulture property for all
|
||||||
|
''' resource lookups using this strongly typed resource class.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
|
Get
|
||||||
|
Return resourceCulture
|
||||||
|
End Get
|
||||||
|
Set
|
||||||
|
resourceCulture = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@ -0,0 +1,73 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' This code was generated by a tool.
|
||||||
|
' Runtime Version:4.0.30319.17929
|
||||||
|
'
|
||||||
|
' Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
' the code is regenerated.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
|
||||||
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Partial Friend NotInheritable Class MySettings
|
||||||
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
|
#Region "My.Settings Auto-Save Functionality"
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||||
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
|
My.Settings.Save()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End If
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Public Shared ReadOnly Property [Default]() As MySettings
|
||||||
|
Get
|
||||||
|
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
If Not addedHandler Then
|
||||||
|
SyncLock addedHandlerLockObject
|
||||||
|
If Not addedHandler Then
|
||||||
|
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||||
|
addedHandler = True
|
||||||
|
End If
|
||||||
|
End SyncLock
|
||||||
|
End If
|
||||||
|
#End If
|
||||||
|
Return defaultInstance
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||||
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
Friend ReadOnly Property Settings() As Global.ArduinoPhMeter.My.MySettings
|
||||||
|
Get
|
||||||
|
Return Global.ArduinoPhMeter.My.MySettings.Default
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||||
|
<Profiles>
|
||||||
|
<Profile Name="(Default)" />
|
||||||
|
</Profiles>
|
||||||
|
<Settings />
|
||||||
|
</SettingsFile>
|
||||||
@ -0,0 +1,165 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
|
<ProductVersion>
|
||||||
|
</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{D2D4ACE6-2289-433C-996D-7773D4D5066A}</ProjectGuid>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<StartupObject>ArduinoPhMeter.My.MyApplication</StartupObject>
|
||||||
|
<RootNamespace>ArduinoPhMeter</RootNamespace>
|
||||||
|
<AssemblyName>ArduinoPhMeter</AssemblyName>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<MyType>WindowsForms</MyType>
|
||||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
|
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DocumentationFile>ArduinoPhMeter.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<DefineDebug>false</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DocumentationFile>ArduinoPhMeter.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionExplicit>On</OptionExplicit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionCompare>Binary</OptionCompare>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionStrict>Off</OptionStrict>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionInfer>On</OptionInfer>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Deployment" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
|
<Import Include="System" />
|
||||||
|
<Import Include="System.Collections" />
|
||||||
|
<Import Include="System.Collections.Generic" />
|
||||||
|
<Import Include="System.Data" />
|
||||||
|
<Import Include="System.Drawing" />
|
||||||
|
<Import Include="System.Diagnostics" />
|
||||||
|
<Import Include="System.Windows.Forms" />
|
||||||
|
<Import Include="System.Linq" />
|
||||||
|
<Import Include="System.Xml.Linq" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Form1.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Form1.Designer.vb">
|
||||||
|
<DependentUpon>Form1.vb</DependentUpon>
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Application.myapp</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Resources.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Settings.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="Form1.resx">
|
||||||
|
<DependentUpon>Form1.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="My Project\Resources.resx">
|
||||||
|
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||||
|
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="My Project\Application.myapp">
|
||||||
|
<Generator>MyApplicationCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="My Project\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<CustomToolNamespace>My</CustomToolNamespace>
|
||||||
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Microsoft .NET Framework 4 Client Profile %28x86 and x64%29</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Windows Installer 3.1</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||||
|
<InstallUrlHistory />
|
||||||
|
<SupportUrlHistory />
|
||||||
|
<UpdateUrlHistory />
|
||||||
|
<BootstrapperUrlHistory />
|
||||||
|
<ErrorReportUrlHistory />
|
||||||
|
<FallbackCulture>en-US</FallbackCulture>
|
||||||
|
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||||
|
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||||
|
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||||
|
<security>
|
||||||
|
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||||
|
</requestedPrivileges>
|
||||||
|
</security>
|
||||||
|
</trustInfo>
|
||||||
|
</assembly>
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>
|
||||||
|
ArduinoPhMeter
|
||||||
|
</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="P:ArduinoPhMeter.My.Resources.Resources.ResourceManager">
|
||||||
|
<summary>
|
||||||
|
Returns the cached ResourceManager instance used by this class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="P:ArduinoPhMeter.My.Resources.Resources.Culture">
|
||||||
|
<summary>
|
||||||
|
Overrides the current thread's CurrentUICulture property for all
|
||||||
|
resource lookups using this strongly typed resource class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="T:ArduinoPhMeter.My.Resources.Resources">
|
||||||
|
<summary>
|
||||||
|
A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>
|
||||||
|
ArduinoPhMeter
|
||||||
|
</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="P:ArduinoPhMeter.My.Resources.Resources.ResourceManager">
|
||||||
|
<summary>
|
||||||
|
Returns the cached ResourceManager instance used by this class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="P:ArduinoPhMeter.My.Resources.Resources.Culture">
|
||||||
|
<summary>
|
||||||
|
Overrides the current thread's CurrentUICulture property for all
|
||||||
|
resource lookups using this strongly typed resource class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="T:ArduinoPhMeter.My.Resources.Resources">
|
||||||
|
<summary>
|
||||||
|
A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>
|
||||||
|
ArduinoPhMeter
|
||||||
|
</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="P:ArduinoPhMeter.My.Resources.Resources.ResourceManager">
|
||||||
|
<summary>
|
||||||
|
Returns the cached ResourceManager instance used by this class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="P:ArduinoPhMeter.My.Resources.Resources.Culture">
|
||||||
|
<summary>
|
||||||
|
Overrides the current thread's CurrentUICulture property for all
|
||||||
|
resource lookups using this strongly typed resource class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="T:ArduinoPhMeter.My.Resources.Resources">
|
||||||
|
<summary>
|
||||||
|
A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,20 @@
|
|||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\bin\Debug\SerialPortInterface.exe
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\bin\Debug\SerialPortInterface.pdb
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\bin\Debug\SerialPortInterface.xml
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\ResolveAssemblyReference.cache
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\SerialPortInterface.frmMain.resources
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\SerialPortInterface.Resources.resources
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\GenerateResource.read.1.tlog
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\GenerateResource.write.1.tlog
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\SerialPortInterface.exe
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\SerialPortInterface.xml
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Debug\SerialPortInterface.pdb
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Debug\SerialPortInterface.vbproj.GenerateResource.Cache
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Debug\ArduinoPhMeter.frmMain.resources
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Debug\ArduinoPhMeter.Resources.resources
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\bin\Debug\ArduinoPhMeter.exe
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\bin\Debug\ArduinoPhMeter.pdb
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\bin\Debug\ArduinoPhMeter.xml
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Debug\ArduinoPhMeter.exe
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Debug\ArduinoPhMeter.xml
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Debug\ArduinoPhMeter.pdb
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>
|
||||||
|
ArduinoPhMeter
|
||||||
|
</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="P:ArduinoPhMeter.My.Resources.Resources.ResourceManager">
|
||||||
|
<summary>
|
||||||
|
Returns the cached ResourceManager instance used by this class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="P:ArduinoPhMeter.My.Resources.Resources.Culture">
|
||||||
|
<summary>
|
||||||
|
Overrides the current thread's CurrentUICulture property for all
|
||||||
|
resource lookups using this strongly typed resource class.
|
||||||
|
</summary>
|
||||||
|
</member><member name="T:ArduinoPhMeter.My.Resources.Resources">
|
||||||
|
<summary>
|
||||||
|
A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,20 @@
|
|||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\bin\Release\SerialPortInterface.exe
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\bin\Release\SerialPortInterface.pdb
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\bin\Release\SerialPortInterface.xml
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\ResolveAssemblyReference.cache
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\SerialPortInterface.frmMain.resources
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\SerialPortInterface.Resources.resources
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\GenerateResource.read.1.tlog
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\GenerateResource.write.1.tlog
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\SerialPortInterface.exe
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\SerialPortInterface.xml
|
||||||
|
D:\My Documents\Visual Studio 2010\Projects\SerialPortInterface\SerialPortInterface\obj\x86\Release\SerialPortInterface.pdb
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Release\SerialPortInterface.vbproj.GenerateResource.Cache
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\bin\Release\ArduinoPhMeter.exe
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\bin\Release\ArduinoPhMeter.pdb
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\bin\Release\ArduinoPhMeter.xml
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Release\ArduinoPhMeter.frmMain.resources
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Release\ArduinoPhMeter.Resources.resources
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Release\ArduinoPhMeter.exe
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Release\ArduinoPhMeter.xml
|
||||||
|
D:\Users\kevinlo\Dropbox\PH Meter Project\SerialPortInterface\SerialPortInterface\SerialPortInterface\obj\x86\Release\ArduinoPhMeter.pdb
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user