Click here to Skip to main content
15,886,689 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: how to control room lights via PC and microcontroller Pin
aeman7-May-11 19:51
aeman7-May-11 19:51 
AnswerRe: how to control room lights via PC and microcontroller Pin
fat_boy8-May-11 23:43
fat_boy8-May-11 23:43 
GeneralRe: how to control room lights via PC and microcontroller Pin
aeman9-May-11 3:24
aeman9-May-11 3:24 
GeneralRe: how to control room lights via PC and microcontroller Pin
janwel9-May-11 21:41
janwel9-May-11 21:41 
GeneralRe: how to control room lights via PC and microcontroller Pin
aeman10-May-11 3:29
aeman10-May-11 3:29 
GeneralRe: how to control room lights via PC and microcontroller Pin
janwel10-May-11 22:34
janwel10-May-11 22:34 
GeneralRe: how to control room lights via PC and microcontroller Pin
aeman10-May-11 23:21
aeman10-May-11 23:21 
AnswerRe: how to control room lights via PC and microcontroller Pin
grilialex11-May-11 3:52
professionalgrilialex11-May-11 3:52 
There are many ways to accomplish this:
1. Using a PC and a phone (connected with serial cable).
2. Using a microcontroller and a phone or GSM module.
3. Using PC and microcontroller and phone.

Obviously the third option is redundant.
Now regarding the which way to go (option 1 or 2) this depends if:
1. You know how to program embedded systems (and you know the flow of programming ATmega) or you want to learn.
2. You are an experienced PC (Windows/Linux) programmer.

As i am building embedded systems for many years i can provide you some info for the first option.

1. You can directly connect the phone to ATmega using the UART (of AVR). The phones normally have TTL logic level output for their serial port (and this is why you might need a level translator to RS-232 levels if you connect the phone to PC Serial port). Unless your phone provides a USB only connection (and this depends from the phone manufacturer and model) you can connect the ATmega to the Phone through the TTL serial port. I believe most elder phones have serial TTL interface.

2. The microcontroller have to drive the Relay(s).In the following link you can find way to do it (btw you will need similiar circuits if you drive from the parallel port):

http://www.scienceprog.com/drive-relay-with-avr-microcontroller/[^]


3. You have to write the software on ATmega (obviously) to control the phone (i believe AT commands) get the messages and activate accordingly the relays. If it is of any help to you i have a relative article for a simple non-preemptive OS for AVR that you can use as platform to begin building your application.

AVRILOS: A simple OS for AVR microcontrollers[^]



Hope this helps.
GeneralRe: how to control room lights via PC and microcontroller Pin
janwel11-May-11 15:52
janwel11-May-11 15:52 
AnswerRe: how to control room lights via PC and microcontroller Pin
osama kharm11-May-11 23:20
osama kharm11-May-11 23:20 
QuestionBest use of a SSD in a home/office server Pin
kmoorevs3-May-11 9:51
kmoorevs3-May-11 9:51 
AnswerRe: Best use of a SSD in a home/office server Pin
Luc Pattyn3-May-11 11:08
sitebuilderLuc Pattyn3-May-11 11:08 
GeneralRe: Best use of a SSD in a home/office server Pin
kmoorevs4-May-11 7:26
kmoorevs4-May-11 7:26 
AnswerRe: Best use of a SSD in a home/office server Pin
Luc Pattyn4-May-11 14:53
sitebuilderLuc Pattyn4-May-11 14:53 
AnswerRe: Best use of a SSD in a home/office server Pin
jschell5-May-11 8:38
jschell5-May-11 8:38 
GeneralRe: Best use of a SSD in a home/office server Pin
kmoorevs5-May-11 11:00
kmoorevs5-May-11 11:00 
GeneralRe: Best use of a SSD in a home/office server Pin
Dan Neely6-May-11 2:16
Dan Neely6-May-11 2:16 
GeneralRe: Best use of a SSD in a home/office server Pin
jschell6-May-11 11:13
jschell6-May-11 11:13 
AnswerRe: Best use of a SSD in a home/office server Pin
grilialex11-May-11 4:39
professionalgrilialex11-May-11 4:39 
AnswerRe: Best use of a SSD in a home/office server Pin
Albert Holguin13-May-11 11:45
professionalAlbert Holguin13-May-11 11:45 
QuestionHP printer is killing me... Pin
Joan M26-Apr-11 4:22
professionalJoan M26-Apr-11 4:22 
AnswerRe: HP printer is killing me... Pin
Hans Dietrich26-Apr-11 4:31
mentorHans Dietrich26-Apr-11 4:31 
GeneralRe: HP printer is killing me... Pin
Joan M26-Apr-11 4:55
professionalJoan M26-Apr-11 4:55 
GeneralRe: HP printer is killing me... Pin
Joan M26-Apr-11 8:38
professionalJoan M26-Apr-11 8:38 
AnswerRe: HP printer is killing me... Pin
Hans Dietrich26-Apr-11 8:52
mentorHans Dietrich26-Apr-11 8:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.