Two bluetooth modules to control an led

Assignment Help Computer Engineering
Reference no: EM13761819

I am trying to do use two bluetooth modules to control an LEDs. I am using HC05 as master and another as slave. I can get the two bluetooth module to pair up and communicate with one another using a serial communication in the Arduino IDE. Now what I want to do is to use a push pins to turn on and off an LEDs. Here is my set up for the loop and void set up. I attached also the code that I am using for the bluetooth.
=============================================================
void loop()
{
if(digitalRead(left_arrow_pin) == HIGH)
{
// seems like left arrow button was pressed
// so we clear all the pixels first
clear_all_pixels();

// and then we show the left arrow
left_arrow();
}
else if(digitalRead(right_arrow_pin) == HIGH)
{
// seems like right arrow button was pressed
// so we clear all the pixels first
clear_all_pixels();

// and then we show the right arrow
right_arrow();
}

else if(digitalRead(stop_sign_pin) == HIGH)
{
// seems like stop sign button was pressed
// so we clear all the pixels first
clear_all_pixels();

// and then we show the stop sign
stop_sign();
}
}
====================================================================
void setup()
{
//setting the button pins we defined above as inputs
pinMode(left_arrow_pin, INPUT);
pinMode(right_arrow_pin, INPUT);
pinMode(stop_sign_pin, INPUT);

//initializing the led strip
strip.begin();
strip.show();
}

Reference no: EM13761819

Questions Cloud

Information security profile for your organization : Submit an Information Security Profile for your organization. This project requires you to summarize the required controls and describe the security posture of your organization based on its selected Information security standard
What moral would the people draw from the zuni prayer : Which fable is most applicable to your life, and how? What moral would the people draw from the Zuni prayer? What is the foggiest point in the lecture or reading? Explain why and how so!
What is the estimated amount of time for implementation : Determine the medium through which the office staff prefers to communicate, wether it is a presentation, e-mail or a printed presentation. Knowing my audience will help me to understand their specific needs and not just the message that I want to ..
Select one publically traded stock : Select one publically traded stock. State in a paragraph or two why you believe it has value and will gain in price in  the next 2-3 years.
Two bluetooth modules to control an led : I am trying to do use two bluetooth modules to control an LEDs. I am using HC05 as master and another as slave. I can get the two bluetooth module to pair up and communicate with one another using a serial communication in the Arduino IDE.
Propulsion, absorption, chemical digestion, and mechanical : Many people take a screenshot and use it.
Business financial statements : Which of the following states that a company must perform strictly proper accounting ONLY for items that are significant to the business's financial statements?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd