Find Jobs
Hire Freelancers

Write a C program using AVR studio

$10-30 USD

Completed
Posted about 4 years ago

$10-30 USD

Paid on delivery
Write a C program using the two Templets (internal interrupt & External interrupt) Setup the Arduino Uno-R3 by connecting six LEDs to pins PD0-PD5 and one Ultrasonic Sensor to PB0 (PCINT0). Moreover, you will write two C programs (one uses timer (internal) interrupt and the other uses internal and external interrupts). You cannot use any delay function for this assignment except to trigger the Ultrasonic Sensor (see template C file). Make sure you use the “volatile” keyboard properly. 1) Write a C program to setup Timer1 interrupt (this in an internal interrupt.) The Interrupt Service Routine (ISR) keeps track of timing using volatile global variables. To help you write the entire program, you can use the template provided. The LED connected to PD0 will go through the following sequence: After exactly, 10 seconds, the LED should turn ON continuously for 6 seconds and then turn OFF for 10 seconds. This should repeat indefinitely, i.e., ON 6 seconds, OFF 10 seconds, ON 6 seconds, OFF 10 seconds, etc. Use the template code provided on Blackboard. Note: make sure you use at least 330 Ohm resistors in series with each LED as shown in the figure below. 2) Write a C program to handle external interrupts (PCINT0) in coordination with timer0 and timer2, where the Ultrasonic Sensor connected to PB0 responds with a pulse. Your code should calculate distance from sensor and display it using the LEDs. The Ultrasonic Sensor HC-SR04 measures anywhere between 2cm and 400cm. The sensor responds with a pulse whose width is related to the distance by the formula: distance in cm = time in microseconds / 58. a) Distance measure (DM) < 10cm, LEDs ON represent number 1 in binary (0b00000001) b) 10cm <= DM < 20cm, LEDs ON represent number 2 in binary (0b00000010) c) 20 <= DM < 30cm, LEDs ON represent number 3 in binary (0b00000011) d) Similarly, for every 10cm increment, the LEDs turn on proportionally as in parts “a”, “b” and “c”. The final value390cm <= DM < 400cm, LEDs ON represent number 40 in binary (0b101000). To ensure proper blinking rate, use the oscilloscope.
Project ID: 24647013

About the project

7 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
As high skilled experienced embedded software engineer who has big experience using C,C++ I,I would like to help you so we can discuss the details at chat.
$10 USD in 1 day
5.0 (10 reviews)
3.4
3.4
7 freelancers are bidding on average $15 USD for this job
User Avatar
Hello I am a professional electric engineer I am expert in C programming i did my MS electric engineering from NUST Islamabad Please open message box for me so we can discuss the details Thank you
$10 USD in 1 day
4.6 (47 reviews)
6.4
6.4
User Avatar
Hey There, We're Industrial Professionals with having more than 5 years of wide experiences in Robotics with enabled IoT, various Electronic circuitry (Low and High Power Electronic circuits), Communication (BLE, RF Modules, WiFi Modules, GSM/GPRS, Zigbee etc.) with various Micro-Controllers like Atmega Series, Arm Series, ESP Series. We have completed many satisfied offline projects for various industries and also have past experience of online teaching too. Our projects have given us experiences like in Algorithmic and Mathematical Simulations (One of our Research papers), Electronic mathematics( Basic Computations using Various Logical Gates) by visualizing with LCD (16x2, 20x4) and on TFT with some attractive graphics. We've successfully done proteus simulation for calculator with Atmel Studio 7 with display size (16x2). Hope we match up to you skills requirements. Currently we also have an active startup that has served solar industry by its innovation in IOT & Automation in Area like Robotics and various Cloud Platform. We have great news for you, We've similar kind developed calculator for teaching purpose for children (age 4-10) so that they can learn and enjoy mathematics and so we have basic code ready for your project with bread board prototype in hand. We would love to Start Chat with you to discuss further about your project for Quick and reliably easy solution. Regards Team Light Bulb. **Prices are negotiable** **Project Duration is Negotiable**
$28 USD in 8 days
5.0 (10 reviews)
3.9
3.9
User Avatar
Hello i am embedded system engineer i can deal with Arduino or any micro controller i can finish you project as fast as you want just feel free to text me
$10 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, i have experience with Arduino and the AVRStudio IDE(Now called AtmelStudio). This project will not be a problem/difficult to complete.
$10 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have experience with arduino boards, and specially with interrupts either internal or external also I have a great understanding of volatile keyword and how exactly it should be used. I can finish this project in a short time with a neat code.
$15 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED ARAB EMIRATES
AA, United Arab Emirates
5.0
9
Payment method verified
Member since Mar 14, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.