element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Did I get this right?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 405 subscribers
  • Views 533 views
  • Users 0 members are here
Related

Did I get this right?

Former Member
Former Member over 14 years ago

Ok the object is to display the temp in C & F on a 3 digit 7 segment display using the following.

 

Arduino Uno

Ds18b20 - digital One wire temp sensor

(2) 74HC_HCT595 - shift register

1k resistor network (shown under the LED)

3 digit 7 segment common cathode LED display

SPST NO MC switch

A few other odds & ends (see pic)

 

Total noob here so all input or better ways to do this is welcome!

 

image

Attachments:
image
  • Sign in to reply
  • Cancel
Parents
  • simon.monk
    simon.monk over 14 years ago

    Hi Meden,

     

    Unless you are using your other Arduino pins for something else, you definately don't need the shift register to drive the transistors. A 270R resistor from base to three output pins on the Arduin will work just fine.

     

    You don't need the other shift register either, unless your LEDs are high current, you can just use eight outputs from the Arduino through the series resistors, as long as you are not taking more than 40mA per segment.

     

    For example software for driving 4 digits in this way, download the sketches from http://www.arduinoevilgenius.com and look at project 30.

     

    http://2044900894781404227-a-1802744773732722657-s-sites.googlegroups.com/site/arduinobook/projects/F09-15.jpg?attachauth=ANoY7cqgpB4LhtieRZbTmNYCn4O47I_75QJ-ux8fVGH_L_WtFbKtjJu2LeYD_h3yDoNCEk72-3b8Kb0BGg0_bwYHpJ6WB7FzduTEq80lTvuQ5GtqQUHK9TDawIEn3dOqGlPqIy9lpnHvOiFC9_jjrT1zA5rVBt8dJN7MkLv4hnxt9pN7_5cNuTwvWTjLikx7Fd8cpYLU-MlXmncMGFdMHJveR24ZyLLTPw%3D%3D&attredirects=0

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 14 years ago in reply to simon.monk

    The completed project will be a climate control for a car. Consisting of 10 buttons to control acuators and a servo. The  system will read inside and outside temp. and adjust acordingly. I was  thinking of using another shift register for the buttons. I'd like to  keep the pin usage as minimal as possible and code lean and tight.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 14 years ago in reply to simon.monk

    The completed project will be a climate control for a car. Consisting of 10 buttons to control acuators and a servo. The  system will read inside and outside temp. and adjust acordingly. I was  thinking of using another shift register for the buttons. I'd like to  keep the pin usage as minimal as possible and code lean and tight.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • simon.monk
    simon.monk over 14 years ago in reply to Former Member

    Hi,

     

    10 butons - 7 pins (buttons in 4 x 3 array - there is an Arduino library for key matrix)

    Actuator and servo - 2 pins

    LED segments - 8 pins

    LED common transistors - 3 pins

     

    Makes 20 pins image

     

    Only 18 available on the Arduino - you can use the Analog Ins as outputs too.

     

    So maybe keep the shift register for the segments.

     

    The more hardware, the more chance of something failing. Once the software is right, it stays right!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube