Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given Arauino Doaras connected over SPI. You are supposed to control brightness of 2 LED connected to Arduino# 2 by using 2 potentiometers

You are given Arauino Doaras connected over SPI. You are supposed to control brightness of 2 LED connected to Arduino#2 by using 2 potentiometers connected to Arduino#1 board. Boards are going to communicate over SPI protocol.
Pot1 is connected to pin A1 and going to control Led1. Pot2 is connected to pin A0 and going to control ted2.
Hint: Slave device should implement interrupt routine to get the data sent from Master. Data is stored in SPDR.
a. Explain how you should connect these 2 boards, (e.g. pins to be used for SPI, and LEDs and any other settings (Master/Slave)).
(05 pts)
b. Write code for both Arduino boards. You can use any library function in your code. (30 pts) Answer A and B with explanation
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

What are the factors that affect the control environment?

Answered: 1 week ago

Question

Persuasive Speaking Organizing Patterns in Persuasive Speaking?

Answered: 1 week ago