Pirs uit china: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 40: Line 40:




270 ohm op OSCI pin, 3.3V op die ic dus t4 is 1.56 (3.5V) of 1.52 (3.3V)
270 ohm (274ohm volgens opdruk smd component) op OSCI pin, 3.3V op die ic dus t4 is 1.56 (3.5V) of 1.52 (3.3V)

Latest revision as of 16:55, 5 June 2015

Deze dingen: http:// nl.aliexpress.com/item/Free-Shipping-8-pieces-lot-Wireless-PIR-Detector-for-home-alarm-home-security-system-433-315MHZ/2045958674.html

Printje zegt PIR85D "providing up to 1 million codes / automatic temperature compensation", "315 / 433", "12-3", "YJ1502".

Chips:

- SC1527L - vermoedelijk deze: http://www.sc-tech.cn/SC1527L.pdf

- biss0001 - pir motion detector ic - http://www.seeedstudio.com/wiki/images/2/2f/Twig_-_BISS0001.pdf


Test arduino dingetje geeft bij beweging ~263ms een 0.

Als ik die sc1527l datasheet goed begrijp dan zouden er 2x een bericht verzonden worden, beiden duren "128t". Als t inderdaad 1ms is dan zou dat op 256ms uitkomen en dat vind ik heel netjes matchen op die 263ms die ik zie (2,7% verschil).

Lijkt er op dat berichtjes niet altijd aankomen en dat het met antenne uitgeschoven beter gaat.

Nieuw inzichten: analogRead laat zien dat er een digitale output uit de ontvanger komt (unrelated random 433MHz receivertje). Als de led van de pir aan gaat, worden er heel veel 1/0'en verzonden lijkt het die daarna door die ~256ms 0-gevolgd worden.

Uit de manual:

SYN: 1t '1', 31t '0'
0 bit: 1t '1', 3t '0'
1 bit: 3t '1', 1t '0'

Functional Description
1: Each frame code has 25, synchronization bits (syn) of high and low width t: 31t (first high to low), the
Every yard of more than code form, there are two, known as the "0" code and "1" code; "0" code is a high-low
Width ratio t: 3t pulses (first high to low).
"1" is a yard high and low width ratio 3t: t's
Pulse (first high to low); one yard finished immediately sent to the next frame code. Wherein t is 32 times the oscillation frequency.
2: Code transmitting turn syn, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11,
C12, C13, C14, C15, C16, C17, C18, C19, D0, D1, D2, D3 encoding issued.
3: K0 ~ K3 key combinations out of 15, corresponding to D0 ~ D3, when the button is pressed, the corresponding key

Oscillation resistance and data width (TD) corresponding table:
1: The data in the table is a data (as shown above 0 yards or one yard) in width TD = 4t;
2: Due to the impact the manufacturing process, temperature, voltage, application environment, the maximum will be 20% deviation,
Applications should be considered.


270 ohm (274ohm volgens opdruk smd component) op OSCI pin, 3.3V op die ic dus t4 is 1.56 (3.5V) of 1.52 (3.3V)