EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / I am planning to make modem

I am planning to make modem

|

Microcontroller › AVR › Make a half duplex IR data modem – using obstruction sensors › I am planning to make modem

April 8, 2013 at 8:30 am #9441
Harsh Sharma
Participant

I am planning to make modem prototype using 2 obstacle sensors. One I will be using as receiver and other one as transmitter

 PORTA- ADC

 

  Transmitter code-

DDRA|=0xff;

while(1)

{

sbi(PORTA,0);

_delay_ms(1000);

cdbi(PORTA,0);

_delay_ms(1000);

}

 

RECEIVER

int  main(void)
    {
        int c=0;
        uart_init(UART_BAUD_SELECT(9600,F_CPU));
        sei();
        uart_puts(“initialized”);
        DDRA|=0x00;
        while(1)
        {
            c=bit_is_clear(PINA,0);
            if(c==1)
                {
                    uart_putc(‘A’);
                    uart_puts(“hello”);
                }    
            else
                {
                    uart_putc(‘B’);
                }
        }
    
    }

 

 

Is it right?

RSS Recent Posts

  • Buffer design? February 9, 2026
  • ANOTHER OLD PROJECT REDO February 9, 2026
  • BPF February 9, 2026
  • To couple or decouple February 9, 2026
  • Op amp shock February 9, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise