Street Lights Automation Using OneM2M

The aim of the project is the conservation of energy by reducing electricity wastage as well as reducing the workforce. The Saved energy can

AdvancedFull instructions providedOver 12 days335
Street Lights Automation Using OneM2M

Things used in this project

Hardware components

Grove - Solid State Relay V2
Seeed Studio Grove - Solid State Relay V2
×30
Silicon Labs EFR32MG12
×31
LED (generic)
LED (generic)
×90
Resistor 1k ohm
Resistor 1k ohm
×90
Capacitor 100 µF
Capacitor 100 µF
×30
HLK-5M05
×30
Raspberry Pi 3 Model B+
Raspberry Pi 3 Model B+
×1
Silicon Labs BRD4001A
×1

Hand tools and fabrication machines

Multitool, Screwdriver
Multitool, Screwdriver
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Schematics

ESP32 interfacing with BH1750

This is a 16-bit BH1750 digital ambient light sensor on a GY-302 breakout PCB

Code

GY-302 Basic code

Arduino
Sample code for the GY-302 BH1750 Light sensor
#include <Wire.h>
#include <BH1750.h>

BH1750 lightMeter;

void setup(){
  Serial.begin(9600);

  // Initialize the I2C bus (BH1750 library doesn't do this automatically)
  Wire.begin();
  // On esp8266 you can select SCL and SDA pins using Wire.begin(D4, D3);
  // For Wemos / Lolin D1 Mini Pro and the Ambient Light shield use Wire.begin(D2, D1);

   if (lightMeter.begin(BH1750::CONTINUOUS_HIGH_RES_MODE)) {
    Serial.println(F("BH1750 initialised"));
  }
  else {
    Serial.println(F("Error initialising BH1750"));
  }
}

void loop() {
  float lux = lightMeter.readLightLevel();
  Serial.print("Light: ");
  Serial.print(lux);
  Serial.println(" lx");
  delay(1000);
}

Onem2m_Hackathon_2022 (Athena)

Credits

vaibhavnaware01

vaibhavnaware01

2 projects • 0 followers
Rakesh Hotker

Rakesh Hotker

1 project • 0 followers
Sudha K

Sudha K

1 project • 0 followers
pacchukun

pacchukun

1 project • 0 followers
Bob Flynn

Bob Flynn

32 projects • 13 followers
Andreas Kraft

Andreas Kraft

34 projects • 12 followers
IoT & connected home architect and developer. Ask me about oneM2M.
Miguel Angel Reina Ortega

Miguel Angel Reina Ortega

35 projects • 7 followers
Wonbae Son

Wonbae Son

32 projects • 5 followers
SeungMyeong Jeong

SeungMyeong Jeong

34 projects • 12 followers

Comments