15,901,284 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by bonezegei (Top 9 by date)
bonezegei
14-Jul-22 21:47pm
View
wow thanks, I just tested the std::sort() function today it's amazing. I just realize Im doing my previous codes the hard way, Im gonna explore more about this. Thanks again.
bonezegei
13-Jul-22 10:16am
View
You are technically right. I never thought of that.
bonezegei
13-Jul-22 10:00am
View
yes that's really true. But on the otherside I learned from it.
bonezegei
13-Jul-22 9:53am
View
-lSDL2_image is a linker to a library for SDL. When you forgot to add the linker that same error occurs i think.
bonezegei
13-Jul-22 9:17am
View
oh, yeah right. I just realize that now. Thank you
therefore it should be like this,
I tested it just now and it worked..
for(int a=1; a
bonezegei
13-Jul-22 7:59am
View
the code above works fine when i compiles it
but the board was set to an arduino uno
if the problem still exist even the board was set to AVR microcontroller try adding #include <arduino.h>
bonezegei
13-Jul-22 7:57am
View
#include <softwareserial.h>
int PulseSensorPurplePin = A0; //not =0 since you are reading Analog Value the value 0 for input pin is at Digital pin 0 "A0" is used instead
int Signal;
int Threshold = 550; //variable should be initialize this way i think
int S;
int LED13=13; //you should declare LED 13 if its connected to pin 13
SoftwareSerial mySerial(10, 11);
void setup(){
pinMode (LED13, OUTPUT);
Serial.begin(9600);
mySerial.begin(9600);
}
void loop(){
Signal = analogRead(PulseSensorPurplePin);
S = (Signal / 8);
Serial.print("Your heart Beat is : ");
Serial.println(S,DEC); //it should be Serial.println not Serial.printIn
mySerial.println(S,DEC); //the data type I think should also be declared as Decimal or DEC
if (Signal > Threshold){
digitalWrite(LED13, HIGH);
}
else{
digitalWrite(LED13, LOW);
}
delay(1000);
}
bonezegei
13-Jul-22 7:55am
View
Oh I found additional Errors
//This are typo errors from my code
SoftwareSerial mySerial(10, 11);
Signal = analogRead(PulseSensorPurplePin);
if that code was compiled with arduino
try checking if what board was set to your IDE this code will nost likely work uno mega Boards like arduino Uno and arduino mega..
If the board you chose was a different one refer to the pinout of the analog pin.. some boards does not have this type of pins thats why that type of error occurs..
bonezegei
13-Jul-22 1:29am
View
Yeah you're right sir. Thank you for the reminder.
and I hope if people find my code they read the comment for them to understand it. Although its very simple code but some people just dont really get things that easy. 4 years back i failed a certain subject with that same algorithm. Programming is a very hard subject specially if you dont have your own computer to test some codes.
Show More