Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. how to control room lights via PC and microcontroller

how to control room lights via PC and microcontroller

Scheduled Pinned Locked Moved Hardware & Devices
hardwarehelptutorial
12 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A aeman

    Hi, I am computer science student and i want to control the room lights via sms sent from remote mobile through gsm modem AT commands send to PC and is further forwarded to microcontroller ATMEGA8 but i donot have any idea how to start with.Can any one give me some circuit diagram based on this microcontroller circuit for controlling room lights through commands sent from pc to microcontroller. I want to connect microcontroller with PC via RS232. For the time being i just want to control one light using one relay. I shall be really thankful if anyone can send me the circuit diagram. Thanks for help in advance.

    L Offline
    L Offline
    Luc Pattyn
    wrote on last edited by
    #2

    There are a number of articles on such subjects here at CodeProject. Have a look at these[^] and these[^]. :)

    Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

    Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

    A 1 Reply Last reply
    0
    • L Luc Pattyn

      There are a number of articles on such subjects here at CodeProject. Have a look at these[^] and these[^]. :)

      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

      A Offline
      A Offline
      aeman
      wrote on last edited by
      #3

      These are all irrelevant to what i asked, anyways thanks.

      1 Reply Last reply
      0
      • A aeman

        Hi, I am computer science student and i want to control the room lights via sms sent from remote mobile through gsm modem AT commands send to PC and is further forwarded to microcontroller ATMEGA8 but i donot have any idea how to start with.Can any one give me some circuit diagram based on this microcontroller circuit for controlling room lights through commands sent from pc to microcontroller. I want to connect microcontroller with PC via RS232. For the time being i just want to control one light using one relay. I shall be really thankful if anyone can send me the circuit diagram. Thanks for help in advance.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        Send the SMS to the girlfriend and get her to turn the lights off?

        Dr D Evans "The whole idea that carbon dioxide is the main cause of the recent global warming is based on a guess that was proved false by empirical evidence during the 1990s" financialpost

        A 1 Reply Last reply
        0
        • L Lost User

          Send the SMS to the girlfriend and get her to turn the lights off?

          Dr D Evans "The whole idea that carbon dioxide is the main cause of the recent global warming is based on a guess that was proved false by empirical evidence during the 1990s" financialpost

          A Offline
          A Offline
          aeman
          wrote on last edited by
          #5

          I have a lots of girlfriends.No need of this humble advice. Anyways i am also a girl.

          J 1 Reply Last reply
          0
          • A aeman

            I have a lots of girlfriends.No need of this humble advice. Anyways i am also a girl.

            J Offline
            J Offline
            janwel
            wrote on last edited by
            #6

            How about just sending message to your pc via cellphone then your pc will process it (programming) and send output through parallel port or com port. that should do it. we created it last year via VB 6 ;P

            A 1 Reply Last reply
            0
            • J janwel

              How about just sending message to your pc via cellphone then your pc will process it (programming) and send output through parallel port or com port. that should do it. we created it last year via VB 6 ;P

              A Offline
              A Offline
              aeman
              wrote on last edited by
              #7

              Yes thats what i want to do this via parallel port and i have come to know that it can be done through relays without using microcontroller?? Is it possible?? Can you send me the circuit diagram for that? Here is the link also: http://michael.hinespot.net/circuit.php Can i use the circuit diagram described in above tutorial?

              J 1 Reply Last reply
              0
              • A aeman

                Yes thats what i want to do this via parallel port and i have come to know that it can be done through relays without using microcontroller?? Is it possible?? Can you send me the circuit diagram for that? Here is the link also: http://michael.hinespot.net/circuit.php Can i use the circuit diagram described in above tutorial?

                J Offline
                J Offline
                janwel
                wrote on last edited by
                #8

                my fault as i recall i connect my cellphone(3310) to my PC (parallel port)[i think i dont use any PIC i just use the nokia cable CP tp PC] then when i text that cellphone the text will appear on Visual basic textbox then my output goes to my parallel port as well first you need to know the pin config of parallel port(output and input) WATCH TUTORIAL im still finding the site where i get the schematics but it is possible

                A 1 Reply Last reply
                0
                • J janwel

                  my fault as i recall i connect my cellphone(3310) to my PC (parallel port)[i think i dont use any PIC i just use the nokia cable CP tp PC] then when i text that cellphone the text will appear on Visual basic textbox then my output goes to my parallel port as well first you need to know the pin config of parallel port(output and input) WATCH TUTORIAL im still finding the site where i get the schematics but it is possible

                  A Offline
                  A Offline
                  aeman
                  wrote on last edited by
                  #9

                  ok thanks a lot.

                  1 Reply Last reply
                  0
                  • A aeman

                    Hi, I am computer science student and i want to control the room lights via sms sent from remote mobile through gsm modem AT commands send to PC and is further forwarded to microcontroller ATMEGA8 but i donot have any idea how to start with.Can any one give me some circuit diagram based on this microcontroller circuit for controlling room lights through commands sent from pc to microcontroller. I want to connect microcontroller with PC via RS232. For the time being i just want to control one light using one relay. I shall be really thankful if anyone can send me the circuit diagram. Thanks for help in advance.

                    G Offline
                    G Offline
                    grilialex
                    wrote on last edited by
                    #10

                    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.

                    J 1 Reply Last reply
                    0
                    • G grilialex

                      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.

                      J Offline
                      J Offline
                      janwel
                      wrote on last edited by
                      #11

                      nice article. I hope she found what shes looking for. There is so many in the web the problem is how you interact them to pc. You must know the data receiver of CP , its data sent as well as in PC. Good Job Bro!

                      1 Reply Last reply
                      0
                      • A aeman

                        Hi, I am computer science student and i want to control the room lights via sms sent from remote mobile through gsm modem AT commands send to PC and is further forwarded to microcontroller ATMEGA8 but i donot have any idea how to start with.Can any one give me some circuit diagram based on this microcontroller circuit for controlling room lights through commands sent from pc to microcontroller. I want to connect microcontroller with PC via RS232. For the time being i just want to control one light using one relay. I shall be really thankful if anyone can send me the circuit diagram. Thanks for help in advance.

                        O Offline
                        O Offline
                        osama kharm
                        wrote on last edited by
                        #12

                        it is an cmplicated one but i think so far ..it has some sollution..such as...plc device..the plc device has two logic gates...1 and 0....now you have to think that how my call ..or mabile call will give an instruction of 1 and 0...so i think that transducer which can be installed at the end can solove this problem....pc is used ....

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups