23rd
NOV

DC 12V 24V PIR Motion Sensor

Posted by M. 4Gani under Electronic, Rooti:

There is a small problem with this motion detector and that is that the detector is not sensitive to light.
Usually modules are light sensitive and they can distinguish between day and night.

Fortunately, pin 9 of BISS0001 is reserved for this case.
It is designed so that when the input voltage Vc on pin 9 is high, the PIR input is enabled and when Vc is low, the PIR input is disabled (Vc <0.2 Vdd = disabled).

 

This can be achieved by using an LDR (photoresist) “Trigger Disable Input” between pin 9 and ground.


This will be quite enough for darkness or twilight detection but for setting the light intensity you have to replace 100k Ohm with a 1M Ohm potentiometer.


LDR‎ – Light Dependent Resistor

1000 lux bright sun  ~ 150R
100    lux daylight      ~ 2k ohms
10      lux twilight       ~ 10..20k 100..200k
1        lux dark             ~ 100k
0       lux                       ~ 1.0M..10M

20th
NOV

DFPlayer and Arduino

Posted by M. 4Gani under Electronici:

DFplayer  module is quite small and looks good for little project.

The module read only audios in MP3 and WAV formats and all audio files must be placed under /mp3 folder.
It’s required that files are named like 0001.mp3, 0002.mp3…..0255.mp3 (4 letters not 2 or 3 letters)
The file names can have any characters after 4 digits, such as 0001_oclock.mp3

Components

DFPlayer Mini module and Speaker
SD card – 2GB ~ 32GB formatted with FAT or FAT32
MP3 / WAV – audio files
Arduino
2 x 1kOhm resistors

How to connect the cheap DFPlayer mini module to an Arduino:

The DFPlayer mini has three modes in which mp3 files can be played.
1) The files are stored in the root directory of the SD card.
2) Files are stored in folders, numbered 01-99, with filenames 001-255.mp3
3) Up to 2999 files are stored in the directory “mp3” with four-digit filenames 0001.mp3-2999.mp3
The serial connection need 1K ohm resistor (3.3 volts vs. 5volts arduino)

Reading the DFRobotDFPlayerMini.h is very instructive and easy to read:

void playFolder(uint8_t folderNumber, uint8_t fileNumber);
void playLargeFolder(uint8_t folderNumber, uint16_t fileNumber);
void playMp3Folder(int fileNumber);

 

mp3_play (74); means play audio file 0074.mp3

14th
AUG

Puya Abdinyan

Posted by M. 4Gani under Rooti:

Puya Abdinyan

یک مقاله کوتاه و مختصر در باره افشاریان نوشته توسط  پویا عبدی نیان

پویا عبدی نیان

طاهریان (۸۲۱ تا ۸۷۳ میلادی) نخستین حکومت ایرانی تبار و مستقل ایران بعد از حملهٔ اعراب بودند
دراختلاف بین پسران هارون الرشید، امین و مأمون، طاهر پسر حسین جانب مأمون را گرفت و در جنگی که علی بن عیسی بن ماهان، سردار امین، در ری برضدّ مأمون کرد، طاهر بن حسین او را شکست داد و کشت. هنگامی که مأمون به خلافت رسید به پاس این خدمات طاهر را، برای پاسداری از امنیّت شهر، شُرطه بغداد کرد و چند سال بعد حکومت خراسان را به او داد

صفاریان (۸۷۱ میلادی تا ۱۰۰۳ میلادی)
آل زیار (۹۲۷ میلادی تا ۱۰۹۰ میلادی)
آل بویه (۹۳۵ میلادی تا ۱۰۶۲ میلادی)

غزنویان (۹۷۷ میلادی تا ۱۱۸۶ میلادی)
سلجوقیان (۱۰۳۷ میلادی تا ۱۱۹۴ میلادی)
خوارزمشاهیان (۱۰۷۱ میلادی تا ۱۲۳۱ میلادی)

 

 

8th
JUN

Set up an IR Receiver on a Arduino

Posted by M. 4Gani under Electronici:

The IR signal is a series of IR light pulses which are modulate with a high frequency known as the carrier frequency.
The carrier frequency used by most transmitters is 38 kHz.
The IR receiver has a bandpass and filtered 38 kHz than demodulates the IR light signal, pre-amplifier and converts it to a binary signal.
Each button on the remote control generate a unique hexadecimal code.
This is the information that is modulated and sent over IR to the receiver.

Hardware requirements:

– Arduino board
– IR receiver. Such as the TSOP38238
– An IR remote such as you use for controlling your TV,

Connecting the IR receiver is very simple.
The IR Remote Receiver Electronic Brick has 3 pins. GND, VCC and Signal.

There are many different IR remote controls.
All of these may have different encoding methods and number of physical buttons, and different codes received when a button is pressed.

The best way to find the key codes for your remote control you can upload this code to your Arduino and open the serial monitor.

Below an example Software Sketches for a few common IR Remotes.
You press a key on your remote and the program print the hexadecimal code.

Decoding IR Data

#include "IRremote.h"
int receiver = 11;                   // pin 1 of IR receiver to Arduino digital pin 11

IRrecv irrecv(receiver);
decode_results results;

void setup() {
  Serial.begin(9600);
  Serial.println("IR Receiver Raw Data + Button Decode Test");
  irrecv.enableIRIn();               // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {    // have we received an IR signal?
    Serial.println(results.value, HEX);
    translateIR();
    irrecv.resume();                // receive the next value
  }
}

void translateIR() {                // takes action based on IR code received
  switch(results.value) {
    case 0xFF20DF: case 0x202C23D: Serial.println(" 0ff"); break;
    case 0xFFB04F: case 0x20238C7: Serial.println(" v+"); break;
    case 0xFF906F: case 0x202A857: Serial.println(" v-"); break;
    case 0xFF48B7: case 0x202B04F: Serial.println(" ok"); break;
    case 0xFFA857: case 0x202F807: Serial.println(" FORWARD"); break;
    case 0xFF08F7: case 0x20208F7: Serial.println(" LEFT"); break;
    case 0xFFC837: case 0x2028877: Serial.println(" RIGHT"); break;
    case 0xFF10EF: case 0x20220DF: Serial.println(" 4"); break;
    case 0xFF38C7: case 0x202A05F: Serial.println(" 5"); break;
    case 0xFF5AA5: case 0x202609F: Serial.println(" 6"); break;
    case 0xFF30CF: case 0x202807F: Serial.println(" 1"); break;
    case 0xFF18E7: case 0x20240BF: Serial.println(" 2"); break;
    case 0xFF7A85: case 0x202C03F: Serial.println(" 3"); break;
    case 0xFF42BD: case 0x202E01F: Serial.println(" 7"); break;
    case 0xFF4AB5: case 0x20210EF: Serial.println(" 8"); break;
    case 0xFF52AD: case 0x202906F: Serial.println(" 9"); break;
    case 0xFFC23D: case 0x20200FF: Serial.println(" 0"); break;
    default:  Serial.println("-> other button  <-");
  }
  delay(500);
} 

1st
APR

Autofenster geht nicht mehr hoch

Posted by M. 4Gani under Blog, Rooti:

Skoda Fabia Autofenster geht nicht mehr hoch


Die Ursachen wäre in den meisten Fällen einfach der Seilzug oder ein Verknoten des Seiles.

Zieht die Scheibe irgendwie nach oben und fixiert es mit Klebeband, damit es vorerst geschlossen ist.
Nehmen Sie die Türverkleidung ab und werfen Sie selbst einen Blick hinein. Oft kann man erkennen, woran es liegt. Sie sollen sich vergewissern, dass Elektromotor in Ordnung ist.

Wenn man den Knopf zum unterlassen drückt und hört der Motor surrt dann ist das seil verklemmt.
Eine Reparatur ist jedoch nicht ganz so einfach.

Abbau der Türverkleidung
Insgesamt sind 4  Torx Schrauben – 2 hinter Haltegriff und weitere 2 am unteren Türvierkleidungsabschluss.

Ist die komplette Türverkleidung gelöst dann geht weiter mit der Innenverkleidung.
Für das Entfernen der Innenverkleidung benötigt Zeit in besonders beim Skoda Fabia Combi, da die Innenverkleidung mit 12 Nieten befestigt wurde.

Es muss das Kabel des Türöffners auf der Rückseite, Lautsprecher, Außenspiegel, Einstiegsleuchte gelöst werden.
Sind alle Nieten gelöst, dann kann die komplette Verkleidung nach oben schieben und raus nehmen.

Sie können Fensterheber mit oder ohne Grundplatte kaufen. Ich empfehle aber bestellt einfach kompletten Seil mit Trägerplatte.
Fensterheber elektrisch vorne links für Skoda Fabia kostet bei ebay ca. 28€ +Versand.

Ich habe danach die Nieten einfach gegen Schrauben-Nieten ersetzt.

 

 

See more website here...

  • Advertise Here
  • Advertise Here
  • Advertise Here
  • Advertise Here