Sensor reading, bluetooth data reading

So, the app still doesn't work.
The bluetooth module will blink slowly after it is paired in the app, but no data, few more days and I will be examinated, so...

New way: I'd like to print random number in the Data section, like the photo below (that change from 27 to 28 or 26, 47 to 45 or 49, 874 to 852 or 896 or something else), that would change every 6 seconds. The objective now is to give to the examinator an app that shows numbers, even if these numbers are not true. Wouldn't be worse to give an app (like mine) that doesn't show numbers instead of some kind of running app?

P.S. Thanks to everybody looking for giving me an hand in this absurd project. I'll never be an app developer but at least i'll pass this last, final, only, single exam I have.
Immagine 2022-05-31 183105

Dear @Noobie,
I'm really sad that you cannot get the result, but you cannot ask us to help you in making a fake app.
Please also consider that if your examinator is just 0,001 smart and asks you to switch off the Arduino and your app still shows changing numbers, you will be "fired" :disappointed: with shame.
I believe you don't want that.
But if your examinator can see that you have written a good code for both the Arduino board and the phone I guess he will consider your job anyway successfully (probably the HC05 is broken, or it is set in Master Mode, instead of Slave), therefore it is not working irrespective of all your efforts.
I don't know if Chris has different ideas. One last trial that we can do is : can you please let us have some photos of your HW ? So to see what is the type of HC05 you have (the part number must be visible in the photo) And how the connections are made (pins, resistors, power supply, etc).
There are still so many unknown things, like: are we sure that pins 10 & 11 are good and not broken ? Have you tried perhaps to use pins 2 & 3 ?
Is the HW of yours or is it from the school lab's ?
You see how it's difficult to get rid of this uncertainty.
I'm really sorry.

2 Likes

May I clarify what I mean. From the thread it seems that you don’t know if your problem is the AI2 app, your phone, Bt module HC05, hardware setup, Arduino or your sketch. It can also be multiple problems. That makes it still harder to solve. That is why I suggested a step by step method to verify parts using the old method, divide in parts, verify one part and use that part to verify next part.

Step 1 lets you verify phone, Bt module including serial interface using a wellknown and working tool, Bt terminal. Note it’s independent of module baudrate since rx and tx baudrate are always the same.

Step 2 (when step 1 is ok) lets you verify the Arduino and Bt setup. You can simply change the baudrate in your sketch to match the Bt module.

Step 3 (when step 1 and 2 are ok) lets you verify that the setup in your AI2 app is ok.

When all this is working as expected, then you can add your real app functions to a setup that you know is ok. Remember: the complexity that you can handle is a function of your experience and your skill. If you are new to programming, take small steps.

2 Likes

Hello Noobie

I know you feel you are far away from success, but a little investigation will normally sort things out.

If you could take some photos of your set-up, that will help us to help you. Just follow what Ugo has said about that in post #61.

Once we are confident the Hardware set-up is good (we might see something that needs fixing), we can make further little tests, starting with the discovery of the HC-05's baud rate, then on to the steps listed by Rolf. The HC-05 blinking slowly is at least a sign of life :grin: Have you timed it? Is it off 2 seconds then on 2 seconds?

1 Like

Hi Noobie

Are you ready to get your Project working?

Hi ChrisWard, I gave up because I ran out of time. App development is too much. I'm not into this thing so I'll no longer bother the AI2 community with this awful project that I'm not able to solve. Too much questions that I'm not able to answer because of time. I'll show the things I got and that's it. I'll not use a fake app because is cheating, and I am not a cheater (thanks to uskiara for opening my eyes).

Thanks to everybody that tried to close this topic, but it will remain unsolved for a long long time. I saw some similar topics like mine, and I think will pop up another very soon. Bye everyone :grin:

1 Like

Well, sorry to hear you are giving up Noobie because your Project is very very close to working! Hundreds have been in a similar situation and we have always got there in the end.

Wish you well in whatever you do in the future. If you change your mind and decide to give your project one last go, we will be here ready to help.

1 Like

Just a quick note Noobie - yesterday, someone with very similar issues in their Project to yours, successfully got it all going:

I think that shows just how close you are to success with your Project.