Hey! I have a VL53L0XV2 sensor and it does not show the distance. I also set it to "6" in the configuration, but in the Racechrono program it only finds it as the front right wheel (FR). board while ESP32,
I don't know that distance sensor or if anything is different in its API. So you are on your own figuring out if you need to rewrite some code or not. Start with looking up the library that is used and what that says it supports and how.
A guess could be you haven't used the correct GPIO pins for external wiring as they are documented in configuration.h for the board setting you also chose there?
I did this #define GPIOCAR SDA // GPIO pin number #define GPIOFRONT SDA // GPIO pin number #define GPIOLEFT SDA // GPIO pin number #define GPIOMIRR SDA // GPIO pin number and only after that it began to determine how the rear wheel
I really have no idea what the error message is but guess maybe incorrect edits in config file or incorrect board settings in Arduino IDE or some library missing in it
if I load the sketch master, then everything is ok. But there is no amg8833 sensor. if you upload a development sketch for esp32, then everything is also ok and works with amg8833
Go back to the untouched files which compiles fine. Then do one single change of the changes you need to do and test compile. One more single change, test compile. And so on. Until you get your compilation error. Then you know better what to continue to pursue
I take your main file, open it in the program, change only the board and the sensor in the configuration, and immediately upon checking this error. If you change the sensor to another error is the same. if you take a sektch master, then he gets up without any problems.
I took a look and the board library files from Adafruit for their nRF boards. Adafruit has set compiler warnings much stricter there than for ESP32 boards. They've set it so return type check warnings prevents compiling. By just turning off these warning messages compilation runs fine.
Search for the file "platform.txt" in a sub directory for the Arduino IDE settings and board definitions. On a windows portable install i can be here C:\Program Files (x86)\Arduino\portable\packages\adafruit\hardware\nrf52\some version number\... On a non portable install or Mac or Linux machine it'll be somewhere else of course.
Comments
Choose the one that lists the hardware you have.
Thanks for your patience and help!
I don't know how I did it but it worked
I have a VL53L0XV2 sensor and it does not show the distance.
I also set it to "6" in the configuration, but in the Racechrono program it only finds it as the front right wheel (FR).
board while ESP32,
I don't know that distance sensor or if anything is different in its API. So you are on your own figuring out if you need to rewrite some code or not. Start with looking up the library that is used and what that says it supports and how.
What is the Bluetooth name of it?
Only that, no other characters at the end of the name?
A guess could be you haven't used the correct GPIO pins for external wiring as they are documented in configuration.h for the board setting you also chose there?
Looked in configuration.h for pinout/GPIO to use ?
Is this pin to ground? or from the sensor SDA
to connect here?
If GPIOLEFT is set to 13 that is the pin to ground to set it to left
Or leave open and set it to LF as you did in the config file instead. But don't ground pins AND set in config file.
#define GPIOCAR SDA // GPIO pin number
#define GPIOFRONT SDA // GPIO pin number
#define GPIOLEFT SDA // GPIO pin number
#define GPIOMIRR SDA // GPIO pin number
and only after that it began to determine how the rear wheel
my brain is broken.
I bought a Bluefruit nRF52 Feather board, but when I start to upload a program to the board, I get this error
Compilation error: control reaches end of non-void function [-Werror=return-type]
What am I doing wrong again? Please, help!
I really have no idea what the error message is but guess maybe incorrect edits in config file or incorrect board settings in Arduino IDE or some library missing in it
Read and edit the config file properly.
Go back to the untouched files which compiles fine. Then do one single change of the changes you need to do and test compile. One more single change, test compile. And so on. Until you get your compilation error. Then you know better what to continue to pursue
if you take a sektch master, then he gets up without any problems.
Again, do one edit at a time. Is the error with the sensor or the board. Then one can continue to dig for the issue.
Search for the file "platform.txt" in a sub directory for the Arduino IDE settings and board definitions. On a windows portable install i can be here
C:\Program Files (x86)\Arduino\portable\packages\adafruit\hardware\nrf52\some version number\...
On a non portable install or Mac or Linux machine it'll be somewhere else of course.
Just comment out the warning lines:
name=Adafruit nRF52 Boards
version=1.3.0
# Compile variables
# -----------------
#compiler.warning_flags=-Werror=return-type
#compiler.warning_flags.none=-Werror=return-type
#compiler.warning_flags.default=-Werror=return-type
#compiler.warning_flags.more=-Wall -Werror=return-type