Tuesday, February 16, 2016

ESP8266 experimentboard

Some months ago i started experimenting with another ESP8266 board.

An announcement about this board and it features is on


One of the nice things about this board is that it has an USB connector for programming (and power).
There is a lot of info how to use the ESP8266 Wifi chip.
Visit e.g.  http://benlo.com/esp8266/esp8266QuickStart.html

It is very easy to connect this board to your windows computer. However changing the (virtual) COM port to a range where it can be used it with the lua program can be an obstacle.
An description how to change the COM port and find what was connected to the "old com4 port" was posted by user Antony in 2012 on http://superuser.com/questions/389539/how-do-i-find-the-device-which-has-com-port-x-reserved-want-to-reclaim-the-por  ( or better use this  permalink ).
As i do not want to lose this info i copied the text also below in this blog article : 

How do I find the device which has Com Port X reserved - want to reclaim the port num for different device.

"Method Using Elevated Command Prompt"
From Start Menu type cmd into search bar right click on cmd.exe and select run as administrator at UAC select yes to allow Windows Command Processor Program to make changes.
At the Command prompt type
SET DEVMGR_SHOW_NONPRESENT_DEVICES=1 (Followed by enter)
Then to open device manager type
DEVMGMT.MSC (Followed by enter)
In device Manager select View / Show hidden devices
Expand Ports (COM & LPT)
Hidden ports reserved will be shown with greyed out symbol & associated manufacturer / device type














To re-hide non present devices in future - from an elevated Command prompt type
SET DEVMGR_SHOW_NONPRESENT_DEVICES=0 (Followed by enter)



Tuesday, December 1, 2015

Arduino_KY-035_Class_Bihor_magnetic_sensor

Arduino KY-035 Class Bihor magnetic sensor

This sensor gives an analog signal

Hardware

  • S          Arduino Pin A5
  • middle  +5V
  • -           GND

Function

Without magnet 523
With one simple (not extreme strong) magnet values observed between 388 and 613

More info




Monday, November 30, 2015

Arduino_KY-024_Linear_magnetic_Hall_sensors

Arduino_KY-024_Linear_magnetic_Hall_sensors


Hardware

  • D0 (Digital Signal) Arduino D3 Only needed for "Digital script"
  • + +5V
  • G GND
  • A0 (Analog Signal ) Arduino A0 Only needed for Analog script"

Digital

When the linear Hall sensor detects a magnetic signal Arduino LED (pin 13)  (and led on module) flashes Arduino.


Analog

Value depends on position of magnetic field
Without magnet 523, with magnet between 417 and 730


More info


https://tkkrlab.nl/wiki/Arduino_KY-024_Linear_magnetic_Hall_sensors


Sunday, November 29, 2015

Arduino_KY-003_Hall_magnetic_sensor_module

KY-003 37-1 Hall magnetic sensor module 

Hardware

  • Pin  S                 D10
  • Pin middle (5V) +5V
  • Pin -                   GND -





Function

When the Hall sensor detects a magnetic field, Arduino LED (and the led on the sensor module) lights up.

Saturday, November 28, 2015

Arduino_KY-025_Reed_module

Arduino KY-025 Reed module

My version of this module has
2 leds:   power led and sensor led
4 pins + , G A0 (analog out) and D0 (digital out)
one IC( comparator ) and some resistors an a variable resistor (potmeter)On the internet you can also find a digital output only version of KY-025.

Hardware

  • D0 (Digital Signal)                 Arduino D3 (Only needed for Digital )
  • + +5V
  • G GND
  • A0 (Analog Signal )        Arduino A0 (Only needed for Analog  )

Digital


Function (Digital)

If power connected to the module the power led is on.
When a magnet is close to the sensor also the sensor led on the module is on and the pin 13 led on the Arduino will go on also.

Analog

On The Net i could not easy find an example using the KY-025 A0 analog pin.
I cloned an existing analog sensor script and tried it.


Function (Analog)

The reed sensor can only be closed (with magnet) or open (without magnet)  !!
With magnet i get the value is 1,  without magnet  1023.  Perhap the value can be changed with the potentiometer. (I did not try this.)

More info




Friday, November 27, 2015

Arduino_KY-021_Mini_magnetic_reed_modules

Arduino KY-021 Mini_magnetic reed module

A resistor is included on my version of this module.
For the test you need to keep a magnet ( not included in the 37in1 kit ) near the sensor.

Hardware

S         (signal) Arduino Pin 3
middle             +5V
-                      GND


Function

The reed contact is closes with a magnet near the sensor and the built in led on the Arduino is turned off (Pin 13)  Without magnet the led is on.

More info


Thursday, November 26, 2015

Arduino_KY-029_Yin_Yi_2-color_LED_module_3MM

Arduino KY-029 Yin Yi_2-color LED module 3MM

Same as KY-011 only different led size
Additional needed 330 Ohm resistor ( 2x)
On my version only the red led functioned the other was defective !

Hardware

  • Arduino pin 10 --> resistor 330 Ohm --> Signal pin of the module   (Green)
  • Arduino pin 11 --> resistor 330 Ohm --> Middel pin of the module  (Red)
  • Arduino GND  --> module -/GND
The circuit perhaps can work without the 330 Ohm resistor, however it is strongly recommended to add the resistors!




More info





Tuesday, November 24, 2015

Arduino_KY-020_Tilt_switch_module

Arduino KY-020 Tilt switch module

Arduino Ball switch module KY020
My version of this module has a debounce resistor.

Hardware

  • S          Arduino Pin 3
  • middle  +5V
  • -           GND


More info