Tuesday, July 19, 2016

Presenter / Laser pointer IOT DIY (1)

This week i will dedicate some blog posts to a presenter / laser pointer that i made.
With a laser led module and a battery you can easy make a simple own laser pointer.
 To make it a real IOT laser pointer / presenter i added a ESP8266 module, a button and as a bonus some other spare parts.
The hardware is partly configurable with dupont wires and DIL switches (More hardware details see part 2.)
ESP8266Basic is used to program the module and configure it over Wifi (See part 3 and 4)
The plastic box was a small box containing some nuts and bolts
 bought in an hardware store that i wanted to give a second life.
With superglue i glued the battery pack ( 3x AA ) included with
 my ESP8266 module on the back of the box.
 I made a hole for the laser led, a push button and
 a opening to for the wires of the battery.

I added a little PCB for some other components. For the power i added two dupont wires with female connectors to connect to the ESP8266 unit.

One additional dupont wire with female connectors is added for the Laser led. The other side of the Laser led is connected directly to the ESP8266 module.

For this version i wanted only one pushbutton on the outside of the box. ( Button1 ). As the button that i had in stock had 3 connections ( push and notPushed  and common). I connected pushed and notPushed to a jumper, so perhaps i can use his later on.
On the inside there are 4 more push buttons from top to down
Button2
Button3
Button4  ( Reed )
Button5 ( Shake )
from this button i also connected one side to the jumper.
The other (common) side of the buttons i all connected to a DIL switch with two switches.
Using this switch i can connect this common side of all switched to VCC ( 3.3.V) or all to ground.
(You must keep one of these switches in the Off position, otherwise you will short the power!!)
For a simple version you can also skip this dip switch and connect the common to ground. (If using a similar ESP8266 module).

Parallel to Button5 i added a switch vibration / tilt switch / shaking ball switch to detect if the module is moved.

Parallel to Button4 i added a reed contact switch. With this switch you can detect a magnet. A reed switch is not needed for a presenter / laser pointer but i had one in stock it is a cheap add-on feature.

I added a passive buzzer connected to GND and a jumper.

In stock i also have some DHT11 temperature humidity sensors. They are not expensive so i decided to add one also with a DIL switch to disconnect the DHT11 from the power lines for a "hardware low power mode". (In that case you can not read temperature and humidity!) The signal line of the DHT11 sensor is also connected to a jumper.

The power On / Off switch is deliberate missing. To turn the power off remove the batteries. This prevents accidentally turning of the device and keeping the batteries in a not used device for long time.

.

No comments: