Hallo.
I have an Arduino DUE with an ESP8266 Wifi adapter and I would like to make an OBD2 scanner. Currently I can connect via Wifi and AT commands to the OBD (ELM327), but I don't know how to send some commands to communicate with the car. Can anyone advise? Are there any libraries that could be used for this? I found Bluetooth, I don't know if they can also be used for Wifi. Thanks in advance.
I don't know if this is what you're looking for, but have you checked out the ELMDuino library?
There is a WiFi example using an ESP8266 that returns RPM.
Thank You. But I dont know how to add non .zip library. Meybe i will try it during veekend. Also how to setup comunication DUE - ESP8266 on this library. Im usin Serial3 for this, will it work on this library?
Thank You.
I can help with the first question. To download a .zip file, go to the ELMDuino library on GitHub and click the Green Code button.
I am less equipped to help with DUE-ESP8266.
Perhaps the following links may provide some insight:
https://github.com/jessicacarneiro/Due-ESP8266
https://www.instructables.com/Use-Arduino-Due-to-program-and-test-ESP8266/
Sorry. There is no ESP8266WiFi.h .zip in GitHub (or I cant found it). Also I alredy can comincate DUE - ESP , but just via AT commands.
If you click the green button, you will see an option to download the ELMDuino library in .zip format.
You can install the library in the IDE by selecting Sketch/Include Library/Add .ZIP Library from the main menu of the IDE and selecting the .zip file you downloaded above.
If you then select File/Examples from the main menu, you should see the examples from the ELMDuino library you just loaded.
I will try. Thanks!
Hallo.
for ESP8266 there are 2 examples. Both are starting with #include <ESP8266WiFi.h>. There is no ESP8266WiFi.h on .zip on Github. How I can import it into Arduino IDE if it is just text?
It looks like you haven't installed the board package for the ESP8266. Installation instructions may be found here https://arduino-esp8266.readthedocs.io/en/3.1.2/installing.html#boards-manager
which ESP8266 module are you using?
rather than the DUE sending AT commands to the ESP8266 to connect to WiFi etc why not dump the DUE and do the whole project on a ESP8266
even better switch to an ESP32 which gives more functionality including Bluetooth Classic and BLE
@MrY still same error Compilation error: ESP8266WiFi.h: No such file or directory
@horace , Im using somthing like this
I want to stay on DUE if its possible (I have already prepared display and SD card on it)
Thank You
Did you select an ESP8266 board in the IDE, and is it the one you are using?
I use a NodeMCU-type module, so here is what I selected:
you use the ESP8266WiFi.h header file when building code to run on the ESP8266 itself
you are building code to run on the Due which sends AT commands to the ESP-01 (small ESP8266 based module) which runs the WiFi code
@MrY my "main" board is DUE, so , I use DUE programing port
@horace if this is question, then answer is YES, but Im not sure if finaly will be AT commands. It is possible to use AT commands to comunicate DUE-ESP-ELM ?
I don't use AT commands to control ESP8266 micros but I expect so
I tend to write code which runs on the ESP8266 or ESP32
You might wish to look at this issue on the ELMDuino repository.
Compilation error: ESP8266WiFi.h: No such file or directory
how, and where to put non zip ESP8266WiFi.h library ? Thanks
Already tried library folder and scatch folder...
do I have to buy another ( ESP32? ) hardware to run it properly? Which one?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.


