Showing posts with label PIR_Sensor. Show all posts
Showing posts with label PIR_Sensor. Show all posts

Thursday, December 10, 2020

Testing two interesting 220V led light bulbs

 Recently i received two interesting main volt light bulbs from Aliexpress . These two light bulbs are both equipped with sensors. One has a PIR motion sensor. The other mentions a radar sensor. They both give light when someone is near the bulb and it is dark.
From both lamps several versions are available (Warm of Cold white and different watts).

PIR Lamp


Induction Lampe LED E27 B22 LED Night Light Lamp With PIR Motion Sensor Light bulb Luminaria Auto On/Off Detection Energy-saving.

I ordered 12W Cold White. And indeed it looks very cold white








"Radar" Lamp
Radar Motion Sensor E27 Led Lamp Bulb E27 85-265V Auto Smart Infrared Body Sensor Light Bulb For Home Stair Porch Aisle Garage
I ordered a 10W Cold White version

To compare the light bulbs i used a lamp socket with a main ( 220V ) connector and did some tests.
The led lamp with the PIR sensor has a little (additional) ball on top (for the sensor).
The led lamp with the 'radar' is, by just looking at it difficult to distinguish from an ordinary led lamp.


When connecting to mains both lamps first go on. I did not check if this was due to the design or due to the fact that i was near the bulbs.

After the last detection both lamps turn off after a delay of about 25 seconds.
After that they both only light up when sensing something if it is dark.
However the lamp with the PIR sensor is more sensible to light and for this lamp it needs to be a little more dark than for the radar lamp to turn on again when approaching the light bulb.

I did some simple tests to see if the lamps turn on when inside a bag, a box, or behind my computer screen. The lamp with the radar sensor was a little more sensible than the PIR sensor lamp. However the radar was less sensible than expected. So i have some doubts if it is really equipped with a radar sensor or just has another type of IR sensor. 
Also during these experiments when placing the PIR sensor in a bag it randomly turned on an of when nobody was near.


For a more extended test two lamps of a similar wattage should be tested including a power consumption measurement. Also a tear-down of the lamps would be interesting to check the sensors used. Especially for this 'radar motion detector lamp'.  At the moment i will not do such an extended test. I have seen some video's and there are several lamps with radar included. I don't know if there is a lot of variation between the sensibility of these lamps. 

To really know if these motion detection lamps will suit your needs and which lamp will be the best for which situation you will need to test them in the real location where you want to use them.

Monday, July 18, 2016

ESP8266 and PIR sensor (2)



On an earlier blog i posted an article about the ESP8266 and a 5 Volt PIR sensor.
I tested it powering with 3.3 volt.  It did work some times but not reliable. As i needed a PIR sensor in one of my projects (and i did not want to add 5 Volts) a search on internet did give this article using 'my' PIR motion detection sensor:
http://iot-playground.com/blog/2-uncategorised/74-esp8266-wifi-pir-motion-sensor-easyiot-cloud-rest-api
PIR sensor is power by 5V, but if we look at schematic we will see that is's 3.3V internally. Because ESP8266 is 3.3V, we can bypass PIR internal regulator.
Connection after regulator is available at JP1 pin 3. In our case we will connect 3.3V power supply to this point and not to 5V power supply.
See the picture below for my test and yes it will work if the you connect VCC (3.3V) to JP1 pin 3!
(In the picture Signal is connected to the pin labeled GPIO5, in reality this is GPIO4 )





Thursday, July 14, 2016

ESP8266 and PIR sensor (1) Not Working (?)


As i have some of these PIR motion detecting sensors and i wanted to know if my (5 - 20 volt) sensor does work with ESP8266 test module.
The spoiler of the story is already in the title.
With the signal to PinPir (I tried several pins), GND and  +Power to VCC ( 3.3 Volts) i tested the ESP8266 with the program below. This program also toggles another led ( PinChk ) every time the timer routine tests PinPIR.
First the PIR sensor seemed to react on movements.The PIR sensor has a jumper for Single or Repeat Trigger and adjustments for Sensitivity and Time delay. I did not want false alarm signals so did more tests. 
My conclusion is this PIR module does not work reliable on 3V3 if connected the standard way ! This is not a big surprise, the specs say you need 5 - 20 Volts!
ESP8266 and PIR sensor (Not working !!)This configuration starts to give false signals after some time especially if you use the (more power consuming) RGB leds and afer a time you can even remove the PIR sensor and get almost the same results as without the PIR sensor.

' PIR test
cls
' Pin Pir 2 GPIO2

let PinPir = 2

' Pin Led    14 GPIO14
let PinLed = 14

' Pin Chk    4 GPIO5
let PinChk = 4

' Switch off the a RGB leds 
io(po,12, io(pi,1) ) ' 12  GPIO12 RGB led GREEN
io(po,13, io(pi,1) ) ' 13  GPIO13 RGB led BLUE
io(po,15, io(pi,1) ) ' 15  GPIO15 RGB led RED

x = 0
html | <h1>Test Pir sensor</h1> |
html | <br> |
html | <br>Pir sensor controls the Led<br> |
button " Exit ", [Exit] 
html | <br> |
timer 60 ,[PirChk]
html | <br> |
wait 

[PirChk]
' toggle PinChk checkled
x = x + 1
io(po,PinChk,x )
if x > 1 then x = 0

io(po,PinLed, io(pi,PinPir) )
wait

[Exit]
io(po,PinLed, io(pi,1) )
end

A negative result is also a result, i decided to publish it for you (and as a reminder for myself). Perhaps a part of the problem is the wiring of my ESP test module, but 3.3 Volt is also below the specs of this PIR module !
But this is not the end of the story. I did a search on the internet (i need a PIR sensor for my project) and found an interesting article about my module...  As i have planned some other things you have to be patient before i can publish my test results.


Friday, November 13, 2015

Arduino_PIR_Sensor

Arduino PIR Sensor

My PIR sensor :



Found a datasheet for a PIR sensor with pictures exactly like my version
http://www.mpja.com/download/31227sc.pdf.
The two pictures below are copied from this datasheet and gave me info how to connect it to the Arduino.
For the program i used a simple push button program that switches the led 13 on the Arduino on or off




















Hardware

  • Pin big IC & jumper side                                 Ground
  • Pin middel High/Low output - buttonpin           Arduino pin 10
  • Pin                                                                 +5V



Function

No movement - Led off
Movement detected - Led on

More info