Search found 24 matches

by LORDHADES
Fri Nov 27, 2020 5:20 am
Forum: General discussion
Topic: [Solved] I need to return a single value from incoming serial data...
Replies: 37
Views: 19567

Re: I need to return a single value from incoming serial data...

#define buttonPin PA1 bool prevButtonState=1; //1 for pulled up pin, 0 for pulled down pin. void loop { .... bool buttonState = digitalRead(buttonPin); if(buttonState != prevButtonState) //button was just pressed or released { delay(5); //debounce delay prevButtonState=buttonState; if(!buttonState)...
by LORDHADES
Thu Nov 19, 2020 11:35 am
Forum: General discussion
Topic: [Solved] I need to return a single value from incoming serial data...
Replies: 37
Views: 19567

Re: I need to return a single value from incoming serial data...

Thanks a lot for replying, Sir. I started learning arduino last week only, that's why this much difficulty. :cry: My previous output on serial monitor was: 0.900 Kgs 0.900 Kgs 0.900 Kgs 0.900 Kgs 0.902 Kgs 0.900 Kgs 0.900 Kgs 0.900 Kgs 0.900 Kgs *within a second of pressing button Loads of thanks fo...
by LORDHADES
Thu Nov 19, 2020 9:26 am
Forum: General discussion
Topic: [Solved] I need to return a single value from incoming serial data...
Replies: 37
Views: 19567

Re: I need to return a single value from incoming serial data...

stevestrong wrote: Thu Nov 19, 2020 8:21 am Edit your post and put the code part into code tags, otherwise it is unreadable.
Sorry sir... Forgive me if I had committed any mistakes. I've done editing it. I've also added required details.
by LORDHADES
Thu Nov 19, 2020 5:27 am
Forum: General discussion
Topic: [Solved] I need to return a single value from incoming serial data...
Replies: 37
Views: 19567

[Solved] I need to return a single value from incoming serial data...

Hey all !!! Hope you're doing well... I am new to STM32 and Arduino, and I'm doing a project, which is so difficult for me. I'm trying to get weight data from digital weighing scale through STM32f1, and print current weight on a thermal printer. It's a prototype for my college project. Setup : Digit...

Go to advanced search