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 / Topics / why avr microcontroller takes high input cuurrent about 30 ma………….

why avr microcontroller takes high input cuurrent about 30 ma………….

|

Microcontroller › AVR › why avr microcontroller takes high input cuurrent about 30 ma………….

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 6 months ago by Ashutosh Bhatt.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 9, 2014 at 5:08 am #4891
    AJAY VEGAD
    Participant

    #include <avr/io.h>
    #include <util/delay.h>
    void main()
    {
        DDRB=0x00;
        DDRA=0xff;
        PORTB=0x00;
        while(1)
        {
            if(bit_is_clear(PINB,PB0)==0)
                {
                    PORTA=0xff;
                }
            
                    PORTA=0x00;
                            
        }
    }my question is why avr micro controller takes high input curent of about 30 ma?this is my ckt and code

    August 10, 2014 at 6:59 pm #12000
    Ashutosh Bhatt
    Participant

    the circuit is wrong.

    you can not left the pin floating. it should be connected to ground through 1K  – 10K resistance.

    August 11, 2014 at 5:07 am #12001
    AJAY VEGAD
    Participant

    this ckt is suggested by you but again same problem is going on ……..it takes large 30 ma current…..incase of analog ics ..its only takes in turmes of micro ampere ……….but this is digital once but why it takes so large current?wysiwyg_imageupload:12968:

    August 14, 2014 at 7:50 am #12015
    Ashutosh Bhatt
    Participant

    where and how u r measuring current?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • analog logic of shmidt trigger bjt circuit February 15, 2026
  • Harman Kardon radio module BMW noise February 15, 2026
  • CR2/CR123A Batteries In Projects February 15, 2026
  • RC Electronic Speed Control Capacitors February 15, 2026
  • Convenient audio FFT module? February 15, 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