I'm doing a project where an Arduino UNO takes data from a few sensors, and then I want that data to be sent (using the HC-05 module) to a web server programmed in PHP. I've been trying to find a solution or a guide on how to do this but the search so far has been unsuccessful, so if anyone can help, it would be greatly appreciated
Note: I'm not using SQL, nor want to send the data to a database directly. I know it's probably inefficient, but it's the way the project is set up
Thanks everyone
Yeah, I understand the PHP requirement (it's pretty commonly used) but HC05 is a Bluetooth module: why you want to use Bluetooth to connect to a PHP web page, instead of using WiFi?
Why not use any Wifi ESP module connected to UNO, or directly use just an ESP board (with embedded WiFi) like Wemos D1, ESP32, etc, instead of UNO?
I thought it would be more of a hassle to do it that way than with bluetooth
How does the webserver work with HC-05 as you see it? Is there a Rasp_Pi in the mix?
Let's say you speak English and you need to talk to someone who speaks French. Do you think it would be easier to get a friend who speaks both English and French to translate? Or do you think it would be easier to get a friend who speaks English and Russian to translate first to Russian and then another friend who speaks Russian and French to translate that into French?
I'm sorry, I don't think I understand what you're asking me
Astonishing.
I'm very new with arduino, and didn't think there would be more problems with bluetooth over wifi. Being more blunt, I'd appreciate someone trying to help rather than someone criticising the decision I made due to being inexperienced
See this is the part I don't understand. IF you were trying to send a signal to something that was bluetooth then yeah, use bluetooth. But you are sending data to a webpage. Bluetooth doesn't connect to the internet. So there must be some other device you're not telling us about that is going to receive the bluetooth signal and then talk to the internet. And I don't understand how writing code for an extra device is going to make things simpler.
Or perhaps you don't understand that bluetooth doesn't connect you to the internet. If that is the case then you probably need to back up and do some learning before jumping into a project like this. It may be a bit over your head if that's the situation you're in.
Maybe ask yourself this, if you were trying to get to a webpage with your phone, would you turn on the bluetooth or the WiFi?
My laptop would be that device, if that's what you're referring to
See that's the part you left out. You said you wanted to use a bluetooth module to connect to a web server. That sounded as crazy to people here as coming in and asking how to watch a television show on your toaster.
So you don't want to communicate from Arduino to the webserver, you just want to communicate from Arduino to a laptop which will then communicate with the server. You can use the bluetooth modules as a simple serial bridge. But now you will need code on the laptop to receive that data and communicate with the web server. That's probably a question for a different forum.
Alright
You made my day happier!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.