arduino-uno

Pause without Delay() arduino

别等时光非礼了梦想. 提交于 2019-12-02 07:46:16
I am using an arduino uno, logic level converter, adafruit Bicolor LED Matrix, a Raspberry pi, and a button but am having some issues. My goal is that when the button is pushed on the pi it sends a signal to the arduino Uno which will change the animation on the LED backpack. The issue is that the button must be held down right when the loop restarts and if you click it any other time it wont work, I think this is because I am using delay() which pauses everything. Is there any way to pause without using delay()? I have heard of using Millis() but I am new to Arduino's and im not sure how I

How to get turn by turn details real-time to my app

99封情书 提交于 2019-12-02 06:34:57
I'm doing a arduino project for my end year project.I'm making a smart glove for bike riders which can notify phone calls,Health tracking,Geo tracking and Navigation. I want to know is there any method I can get details about turn by turn navigation into my app. i.e :if google navigation said "turn left" get that details and display in my app. P.S:There is a product called Sneakair by easy jet shoes that auto vibrate when turn is arrived. If this is impossible tell me another idea that can embed to my project it would appreciated. You should be aware about certain restrictions regarding Google

convert HEX string to Decimal in arduino

随声附和 提交于 2019-11-29 15:47:44
i have an Hex String like this : "0005607947" and want to convert it to Decimal number , i test it on this site and it correctly convert to decimal number and answer is : "90208583" but when i use this code i get wrong value ! where of my code is wrong or did have any one , some new code for this problem ? long int decimal_answer = getDEC("0005607947") ; long int getDEC(String str110) { long int ID = 0 ; int len = str110.length() ; char buff[len] ; int power = 0 ; for(int i = 0 ; i <len ; i++) { buff[i] = str110.charAt(i); } for(int i = (len-1) ; i >=0 ; i--) { int num = buff[i] - '0' ; ID =

convert HEX string to Decimal in arduino

放肆的年华 提交于 2019-11-28 09:35:42
问题 i have an Hex String like this : "0005607947" and want to convert it to Decimal number , i test it on this site and it correctly convert to decimal number and answer is : "90208583" but when i use this code i get wrong value ! where of my code is wrong or did have any one , some new code for this problem ? long int decimal_answer = getDEC("0005607947") ; long int getDEC(String str110) { long int ID = 0 ; int len = str110.length() ; char buff[len] ; int power = 0 ; for(int i = 0 ; i <len ; i++

Create Delay in Arduino Uno using Assembly language without using timer

佐手、 提交于 2019-11-27 15:54:43
I just started learning about micro controllers and I was not able to understand how we could introduce delays in the code without using timers. My board has a clock of 16MHZ. Let's say I want to introduce 5ms delay before I check if a button is pressed. How would I identify how many instructions I need to execute to get 5 ms delay and how would I program it? Is there a standardized way of doing this? It looks like a very standard thing but I am not able to understand how it is done. I am programming using Assembly language on Atmega 328 Arduino uno. Generally you figure out how many clock

How Do I Make My Program in Qt Continually Send A String to My Arduino?

徘徊边缘 提交于 2019-11-26 18:39:13
问题 I am having trouble trying to get my program to continually send the string "move 200" while I hold down a button. I have the button set to auto repeat however it only sends once the button is released not while it is holding down. However while being held down the counter is adding how many times the message should have been sent. I am at a lost. mainwindow.cpp void MainWindow::on_forwardButton_clicked() { if(arduino->isWritable()){ arduino->write(command.toStdString().c_str()); qDebug() <<