GSM/GPRS Relay Controler by Sim300

Gsm/GPRS Relay Controler by Atmega8 & Sim300

This project is a project by gsm/gprs modem, The sample code can control 3 relay, the status relay is stored in EEPROM , so status relay is back on power on.

Sample code can set or reset relay by SMS or GPRS connection, in sms mode you must first send 5 password then command to device, for example: if you send 12345s1 to device , 12345 is password & s1 is mean to set relay1 , so for ‘r1’ this command reset relay1, for get status of relay, you should send 12345gd , and for charge of sim 12345chxxxxxx, for change password: ‘oldpass’cp’new pass’

In GPRS mode, if you use GPRS , you need a valid IP, The protocol of connection is TCP/IP.

In program you disable or enable GPRS mode by sen sms.

You can edit or modified code for read ADC or READ port by sms or gprs, BUT you should GET LICENSE of ME.




you can download Schematic/PCB & Source code (bascom) here.

caller id by sm8223

Caller id by bacom and SM8223

Hi.
There is a sample caller id project by sm8223 chip, sm8223 is a FSK/DTMF decoder its ideal for telphone circuits. This project is ok and test by me, its correctly decode recive dtmf/fsk code, but maybe have a problem in detect hang up tel line, for debug you can change value the resistor of input of opto coupler. this circuit is ideal for MT8870 or MT88e43 to make a caller id or signal detector of tel line.
My circuit decode signal by 3 different protocol and send decode data in 1200 baud rate.



If you can see the circuite you can advertent the ring circuit is not used!!!

It is not very hard, Plese see to the circuit of SM8223.



Now see section of ring detector:



The ring circuit is not relevance to decoder circuit !!!, ring circuit is a filter to improve the level signal ring to detect ring signal, that not used for my project.

I use a circuit for detect line of tel for decode hook up or hang up, because bandwith of fsk decoder is 1200Hz to 2200Hz, so frequency of voice is 50Hz to 8KHz, so fsk decoder mistake between sound signal by fsk code, line detector know to micro discard incoming signal when tel line is hookup.


Note: SM8223 is not stable for more time
For get Shematic and source code click here.

Garage door control by PT226x , FP527 And HCSXXX Remote control



2 month ago i get a project for decode HCSxxx and PTxxx enoder to control door garage or shop controling.
My remote control was a remote by EV1527 chip. This chip is same as PT2240 and FP527, discord of EV1527 and FP527 is in status key,fp527 status key is invert of EV1527, and discord of PT2240 is map of pins!!! All chip protocol data send are same as PT2262 (pt2260).It encodes data and address pins into a serial coded waveform suitable for RF or IR modulation. PT2262 has a maximum of 12 bits of tri-state address pins providing up to 531,441 (or 312) address codes; thereby, drastically reducing any code collision and unauthorized code scanning possibilities.
An AD Bit can be designated as Bit “0”, “1” or “f” if it is in low,high or floating state respectively. One bit waveform consists of 2 pulse cycles. Each pulse cycle has 16 oscillating time periods. For
further details, please refer to the diagram below:


The Synchronous Bit Waveform is 4 bits long with 1/8 bit width pulse. Please refer to the diagram below:

A group of Code Bits is called a Code Word. A Code Word consists of 12 AD bits followed by one Sync Bit. The 12 AD bits are determined by the corresponding states of A0 ~ A5 and A6/D5 ~ A11/D0 pins at the time of transmission. When Data Type of PT2262 is used, the address bits will decrease accordingly.
For example: In the 3 Data Type where the address has nine (9) bits, the
transmitting format is:

PT2262 / PT2272 has a maximum of twelve (12) Address Bits including
the six (6) Address/Data bits. The following diagram shows the code bits
with their corresponding pins.

0 Data A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 Sync.Bit
1 Data A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 D0 Sync.Bit
2 Data A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 D1 D0 Sync.Bit
3 Data A0 A1 A2 A3 A4 A5 A6 A7 A8 D2 D1 D0 Sync.Bit
4 Data A0 A1 A2 A3 A4 A5 A6 A7 D3 D2 D1 D0 Sync.Bit
5 Data A0 A1 A2 A3 A4 A5 A6 D4 D3 D2 D1 D0 Sync.Bit
6 Data A0 A1 A2 A3 A4 A5 D5 D4 D3 D2 D1 D0 Sync.Bit
The Code Bits A0 ~ A5 and A6/D5 ~ A11/D0 are determined by the states
of A0 ~ A5 and A6/D5 ~ A11/D0 pins. For example, when the A0 (Pin
No. 1) is set to “1” (Vcc), the Code Bit A0 is synthesized as “1” bit. In the
same manner, when it (A0 Pin) is set to “0” (Vss) or left floating, the Code
Bit A0 is synthesized as a “0” or “f” bit respectively.

This application note was get of PT2262 Datasheet of princeton company of taiwan.
in pt2240 , ev1527 and pt2240 floating bit is not used. In pt2260 and pt2262 is send data always used data repeatly at even period. But is other chip data is fixed.
Data bit control is :
i used of a Attiny2313 for decode and 2 button key for learn and Ereas. This application lerarning up to 20 Remote and can be detect Start and End of way of veil. This project is replaced by PUJOL board.

My product:
the remote control for my product is pujol (by hcs301 encoder).

you can download my project by pt2240 decoder HERE.
you can download my project by hcs301 decoder HERE.
This project is another project with "libusb". i write a project with vb6. in project i read temperature of LM35 thermometer ic and send data to pc with a ATmega8 and libusb protocol.
in vb6 , application read temperature of usb device on 1 Second and report in led view & chart View.

this project can be to led view by clicking restore button
.

you can source code Here.
and for download driver click Here.
schematic.

This a project by "HM-T" & "HM-R" Fsk module. This madule is low speed transiver. (MAX 19200). But it is very low to buffer data & send it , recive too.
By this project i send data by comport of pc and recive by Attiny2313 to display by Lcd.
Pc project is write to vb6.its very sample.






you can download sourcecode HERE.
rrr Robot By AT89C2051



At first time this project was a wireless car toys control by 2 mcs. then i edited this project for a pc project.
this project is controled by pc , you can direct the robot by pc keyboard .
key is for stop the robot.
this robot can be record the BE TRAVERSED of way to a log file and can be plaing again to ways of traversed.
mcs of circuit is AT89c2051, code of mcs is very sample.
the At89c2051 get data of pc in baudrate 1200.
my Sender,Recivermodule is worked in 315MHZ.
my robot motor driver is l298, please refer to circuit of reciver.
in tranciver circuit i use a pnp transistor for invert data to send (same as MAX232) . and APPREHENSIBLE for mcs of reciver.
note:
your power supply must provide 12v/3A.









Schematic of sender:



Schematic of Reciver:



the pc program is writing in vb6.
if device is not connect to pc , the application proved a error "device not Define".



led's on reciver circuit are for ways of show.

you can download Sourcecode Here.




AVR309 by Vb6

This project is another project by AVR309. AVR309 project is popular usb project that design by igor secko. The written languge for this project is assembly , this project is very useful project , that have many parameter for a ideal project . by this project you can control port and direction , read and write in internal eeprom,a uart by maximum baud rate 115200 and minimum 9600 and infra red viewer. The project have a pc interface project write in delphi . many people don't know anything about Delphi languge and there are use of Vb6 basic language. So I write a project in Vb6. By this project you can setup the port direction for input or output. The project is sample for comminucation of usb to device.
You can download sample project here.
Major website of author http://www.cesko.host.sk/ .



The sample schematic by ATmega8 is proved.






   A new project in vb6


in this place i always update this objects.

A Active X for hotkey you can download here.
Auto shutdown by vb6 , you can preset a time for shutdown , log off or hibernate. for download click here.





   Phone card Reader by com port!!




This is a Another project but about pc interface . I write this project in vb6. this application read data of a telecard and you can store data in programs. You can read 64 byte data of data of card. For this project we need to a port com. Port com have 9 pins:
For relief I used to dll module by name "Port.dll" . I found this module in PC interface book by author Berndt, Hans-joachim. This module have 35 API . you must add port.bas in your form project of vb6. While you press connect button , programs check the atachament circuit , if device was ok then program check the card , if card is insert or no . this application is proved by a timer.dtr of rs232 pin provide power of card , clk is txd pin and reset is rts. Ri pin is input signal of card. Below picture shown The schematic of project.

Phoncard pins details

D1 d2 d3 all are 5.1v diode zener .circuits is very sample for assembly.sample pcb is proved by proteus :


You can download here. If you need to source code of vb6 you can send email to me. for read of card you must tend to wave chart waveform.


init tele card waveform

For read serial data of com port and convert to byte , I write a function .in first byte shifted to right then the byte add by ri logic. Result export to function(rx_byte).

Public Function rx_byte() As Integer

Dim k As Integer

Dim retval As Integer

For k = 0 To 7

retval = retval * 2

retval = retval + RI

TXD 1 'clk 1

waitms 10

TXD 0 'clk 0

waitms 10

Next k

rx_byte = retval

End Function

So I need to delay by millisecond value . I can used of sleep API but this API don’t worked true.

I write another sub by timer:

Dim wait1 As Long

Private Sub waitms(ByVal delay1 As Integer)

'delay1 = delay1 / 10

Timer2.Enabled = True

While delay1 > wait1

DoEvents

If Me.Visible = False Then End 'for don’t hang it in exit

Wend

wait1 = 0

Timer2.Enabled = False

End Sub

Private Sub Timer2_Timer()

wait1 = wait1 + 1

End Sub

You can download programs here.




   Config lcd and keyboard by ATtiny13!!

This project is made by a lcd 2*16 and 74hc595 and ATtiny13!!

This project is ideal for little microcontroller like Attiny13 and reduce pin and wire for configure lcd and keyboard. This project can multiplex 8 key (be can development by add 74hc595). Configuration lcd in 8bit mode and (in 4bit mode ATtiny13 don’t have enough rom). The sample schematic is design in proteuse. You can get source code and schematic here.






Dataflash by ATmega8


Hi….

last year I need a storage by a little capacity. I have to use of 24c512 but this chip don’t have i2c adress pin!! And I have to for my project used of 2 th of this chip. So I used another chip like "Dataflash". There is a sample in Atmel website by name "SoundRecorder" . you can download Here.

This project is write in c language . but my project was designed in basic(Bascom).!!

I write a sample code for dataflash "45db161" have 2megabyte capacity.

Sample picture of my dataflash project

For this project you need a 3.7v power supply that prepared by LM317 regulator. So you need MAX232 for connect uart to pc .my AVR chip project is Mega8 that you can program on any Avr chip have 2kbyte rom. In bascom spi hardware don’t work correct, so I have to software spi ,but the software spi configure have low speed into hardware spi. :-(

Descriebtion:

At45db161b have 17 sector (0-16) , sector 0 have 8 page and equal by a Block.

Sector 1 have 32 Block and 248 page. Each one of sector s (Sector 2 to sector 16) have 256 page .

In additional At45db161b has 512(0-511) blocks. Please see below image.



Advanced In dataflash, for more speed this chip have 2 puffer for read & write!! So supported 4 mode program spi for read\write ….. while you are programing the memory, you must always checking the "status register " to great the operate is complete.

Sample Schematic of DataFlash & AVR

This schematic is a sample and designed in proteuse . in proteuse At45db161b not define. I used of spi debugger.

You can download Source code And Schematic Here.