Answer the question
In order to leave comments, you need to log in
What will be required for a project with a microcontroller and what should I pay attention to?
The point is this. I have an idea to combine 5 things:
=========================================== ==============
1) Esp8266 Amica
2) magnetic field sensor ( KY-003/KY-024/KY-025/KY-035
) or photoresistor sensor ( KY-018
)
3) joystick sensor ( KY-023
)
4) Android
smartphone
5) TV with HDMI
or support ScreenCast
===== ========= ========================================== =
Exemplary implementation:
Launches an application on a smartphone (written roughly in React Native
). Enter in the fieldip/логин/пароль
and ok. The data is sent to the microcontroller which listens to this data. As soon as he receives them, the reception of data from the magnetic sensor and the joystick is turned on. The data through the microcontroller flies to the smartphone, which then does something with this data and, based on it, renders an interface that is broadcast on TV.
=================================================== ======
Question:
Maybe I missed something when I thought of this combination? In what language is it better to program the microcontroller (I am JS
a developer, I don’t know much about other languages yet)? In general, is such a connection possible when the microcontroller both
receives and sends data from / to a smartphone. Is it possible to write Wi-fi
network data to ESP
via a smartphone or is it necessary
to initially flash the microcontroller with these pre-known data? At first I was going to JS
program the microcontroller, but after flashing further, I still don’t understand where to look for the
info. Maybe it does ESP
n't even work for me? Still rolling Arduino Nano
. Maybe it Rassberi Pi
's good for things like this?
=================================================== ======
What do you recommend?
Thank you.
Answer the question
In order to leave comments, you need to log in
And again it seems to me that you have come to a decision with the wrong technologies. Hence the questions like "do I have to flash the WiFi network parameters inside the ESP".
If I understand those correctly. project, then its essence is as follows:
1. measure some readings
2. transfer them to a smartphone
3. watch what the smartphone shows on TV
Point 3 has nothing to do with the original question. And to solve para. 1 and 2 Bluetooth is perfect:
a) any smartphone can work with it (a bunch of examples on the internet);
b) Bluetooth does not need network parameters, it broadcasts measurements continuously (frequency can be set)
c) there are ready-made code examples for programming the Arduino Pro Mini in conjunction with Bluetooth modules.
The solution looks like this:
1. connect the sensors to the Pro Mini, program it
2. write the code for the smartphone to read the sensor values
3. use the read values inside the phone in the intended way
Throw out your smartphone. ESP has enough brains to generate the necessary responses to a JS application on its own.
It would be nice to learn the basics of c / c ++, since almost all code for controllers is written in them. The syntax is similar to js (more precisely, js is similar to C), but the data types and structures are quite different.
I don’t see much point in using Arduino, since there is no wi-fi in Arduino. And if you already use esp for wi-fi, then you can also work with sensors there. Legs would be enough.
You can get data via wi-fi, but if this data is always the same, then why not flash it in advance?
Controllers on js, is it espruino, or what?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question