Wednesday, September 12, 2018

Current Sensor

30A New Range Current Sensor Module Board For ACS712

Descrition:

The current sensor chips: ACS712ELC-30A
The module can measure the positive and negative 30 amps, corresponding to the analog output 66mV / A
Pin 5V power supply, on-board power indicator
Using gold plated circuit boards
No test current through the output voltage is VCC / 2
Size: 31 x 13mm


This will hook straight to the ADC GPIOs in the ESP32. 

ESP8266 220V 10A Network Relay WIFI Module.
I have two of these. 

https://ucexperiment.wordpress.com/2016/12/18/yunshan-esp8266-250v-15a-acdc-network-wifi-relay-module/ 

Thursday, September 6, 2018

Arduino "Hello World"

Well not quite. I did a Morse Code snippet instead.


[code]
/*
SOS

Blinks the On Board LED
Prints out the "Word" on the Serial Port

  modified 6 September 2018
  by Mark Bolton

*/

int var = 0;

void setup() {
  
 Serial.begin(9600);                                         // initialize BAUD 9600 bits per second:
 pinMode(LED_BUILTIN, OUTPUT);          // initialize digital pin LED_BUILTIN as an output.
}

void loop() {

  var = 0;                                                           // loop 3 times
  while(var < 3){

  digitalWrite(LED_BUILTIN, HIGH);           // turn the LED on "DIT")
  delay(100);                        // wait
  digitalWrite(LED_BUILTIN, LOW);           // turn the LED off "SPACE"
  delay(200);
  Serial.print("DIT  ");                                     //Print the Character
  var++;
  }
    var = 0;                                                        // loop 3 times
  while(var < 3){
  var++;
  digitalWrite(LED_BUILTIN, HIGH);           // turn the LED on "DAH")
  delay(400);                                                     // wait
  digitalWrite(LED_BUILTIN, LOW);            // turn the LED off "SPACE"
  delay(200);                                                     // wait
  Serial.print("DAH  ");
  }
    var = 0;                                                        // loop 3 times
  while(var < 3){
  var++;
  digitalWrite(LED_BUILTIN, HIGH);            // turn the LED on "DIT")
  delay(100);                                                     // wait
  digitalWrite(LED_BUILTIN, LOW);            // turn the LED off "SPACE"
  delay(200);                                                     // wait
  Serial.print("DIT  ");
  }

  {
  digitalWrite(LED_BUILTIN, LOW);           // turn the LED off "END WORD"
  delay(600);                                                   // wait
  Serial.println("");
  }
}
[/code]