I'm basically a beginner to arduino.
For my project I am using a pulse sensor and a temperature sensor (DS18B20) and want to see the output on my computer using a Bluetooth module.
I have connected the sensors properly and they work, but I have no idea what code is required to transmit and see the outputs of the 2 sensor simultaneously.
I have installed the libraries required by the sensors, and have the correct individual codes for the respective sensors.
Do I need to merge these into a single code?
Any help will be much appreciated..
Thank you.
Hi Rishavlala.
The Arduino foum has a section for questions about Sensors. It also has a section for Interfacing w/ Software on the Computer. There is also a section for General Guidance.
This section is about LEDs and Multiplexing. Is your project about leds? Or multiplexing? It does not appear to be.
Yes, certainly you will need to merge some sketches, or at least take some lines of code from several sketches to make your new sketch.
I suggest you click "Report to Moderator" and ask that your post be moved to a more suitable section.
Good Luck
Paul
rishavlala:
Do I need to merge these into a single code?
Yes.
This is not difficult with a simple project like this. Any programme is made up of three parts, and it is essentiallyt just a matter of merging the commands in each. This does not normally need to be in any particular order, unless there are interactions between the inputs, which is not likely here.
No code is required for bluetooth. If you can see data in the serial monitor, you can send it via bluetooth. You will need a proper terminal programme, like RealTerm, on PC to receive data via bluetooth, and all the connections would be made at the PC end.
Thank you for prompt response.
I have managed to merge the individual codes into a working sketch but on switching to Bluetooth transmission, I get an error saying "board at COM4 is not available". The software you suggested might fix this along with a null modem emulator, if I've got it right. I will get back with the result.
Appreciate the help.
Maybe you just need to disconnect the bluetooth module before trying to upload the programme. I'm betting you don't need a "null modem emulator" - whatever that might be.