Hi
I'd be interested to hear how far you can communicate with a pair of 8266's. They are so cheap to add to a PIC (or whatever) to provide comms.
Regards
PIC18F25K22 UART ERROR
-
- Valued Contributor
- Posts: 1186
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 289 times
- Been thanked: 417 times
-
- Posts: 90
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 24 times
- Been thanked: 1 time
Re: PIC18F25K22 UART ERROR
Hi,
with careful placement of ESP-8266 on pcb, and full RF Power, the range was 45m for two pairs, in open air.
sufficient for the specific application..not enough for larger area (over 60m in one dimension) .
For range beyond 50m , a new design will be needed with a module with more RF power , maybe ESP32.
I'll see that later.
For now I'll take a look in another project , to find if it is possible to connect an HD micro camera with an interface to a PIC , and store video to a SD disk.
Regards
with careful placement of ESP-8266 on pcb, and full RF Power, the range was 45m for two pairs, in open air.
sufficient for the specific application..not enough for larger area (over 60m in one dimension) .
For range beyond 50m , a new design will be needed with a module with more RF power , maybe ESP32.
I'll see that later.
For now I'll take a look in another project , to find if it is possible to connect an HD micro camera with an interface to a PIC , and store video to a SD disk.
Regards
- Attachments
-
- 16967834449902240635931101207131.jpg (84.71 KiB) Viewed 6856 times
-
- 1696783314032470389122261425433.jpg (87.7 KiB) Viewed 6856 times
-
- 16967831806207574294809643563860.jpg (110.04 KiB) Viewed 6856 times
Last edited by SILVESTROS on Sun Oct 08, 2023 5:44 pm, edited 1 time in total.
-
- Valued Contributor
- Posts: 1186
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 289 times
- Been thanked: 417 times
Re: PIC18F25K22 UART ERROR
Hi
I didn't expect you would get 45m, that's good going especially if only using the PCB antenna. Quite impressed with that.
Regards
I didn't expect you would get 45m, that's good going especially if only using the PCB antenna. Quite impressed with that.
Regards
-
- Posts: 90
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 24 times
- Been thanked: 1 time
Re: PIC18F25K22 UART ERROR
Hi,
It was easy to have a range of 45m ...With careful design of transmitter PCB , 50m range it's possible with PCB antenna .
Now , I've made some tests with another accelerometer sensor a module with MPU6050 , but I have no data ...Is something wrong at the code for that module?...connections are correct , AD0 is connected to GND with 4.7K resistor...
MPU6050 Initialise is set at Main, instead of MMA8452.
Regards
It was easy to have a range of 45m ...With careful design of transmitter PCB , 50m range it's possible with PCB antenna .
Now , I've made some tests with another accelerometer sensor a module with MPU6050 , but I have no data ...Is something wrong at the code for that module?...connections are correct , AD0 is connected to GND with 4.7K resistor...
MPU6050 Initialise is set at Main, instead of MMA8452.
Regards
- Attachments
-
- 169678273931190702534565174417.jpg (99.64 KiB) Viewed 6865 times
-
- 16967820534505546443359756524367.jpg (85.45 KiB) Viewed 6871 times
-
- IMG_20231008_185507.jpg (86.48 KiB) Viewed 6871 times
-
- Valued Contributor
- Posts: 1186
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 289 times
- Been thanked: 417 times
Re: PIC18F25K22 UART ERROR
Hi
I think 50m is outstanding for such a modest little module and you have done well to achieve. It's given me some further ideas for a project.
Most likely there is some issue with the 6050 code. Do you have a link to the module you are using? I might have one somewhere so will try and have a look.
Regards
I think 50m is outstanding for such a modest little module and you have done well to achieve. It's given me some further ideas for a project.
Most likely there is some issue with the 6050 code. Do you have a link to the module you are using? I might have one somewhere so will try and have a look.
Regards
-
- Posts: 90
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 24 times
- Been thanked: 1 time
-
- Valued Contributor
- Posts: 1186
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 289 times
- Been thanked: 417 times
Re: PIC18F25K22 UART ERROR
Hi
I've just looked at your pictures above of your chart and it looks like you have forgotten to sample the sensor before you read values.
If you include the component macro SampleDevice before you use the "GetAccelReadingReal"" macro's you should get returns.
Regards
I've just looked at your pictures above of your chart and it looks like you have forgotten to sample the sensor before you read values.
If you include the component macro SampleDevice before you use the "GetAccelReadingReal"" macro's you should get returns.
Regards
-
- Posts: 90
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 24 times
- Been thanked: 1 time
Re: PIC18F25K22 UART ERROR
Hi,
I was added MPU-6050 SampleDevice , but I have no data. In simulation , preset values of X,Y,Z reset to 0 in Debug Run.
Is there something wrong with MPU-6050 component or with device address ? In Properties I set AddressBit to 0.
Regards
I was added MPU-6050 SampleDevice , but I have no data. In simulation , preset values of X,Y,Z reset to 0 in Debug Run.
Is there something wrong with MPU-6050 component or with device address ? In Properties I set AddressBit to 0.
Regards
-
- Valued Contributor
- Posts: 1186
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 289 times
- Been thanked: 417 times
Re: PIC18F25K22 UART ERROR
Hi
With AD0 connected to Ground the module should then be set for address 0x68 (or if connected to +v 0x69).
I've just tried simulating an example file I downloaded a while back (possibly when using v8) and it didn't simulate. I then created a new chart in v10 with just the component reading Gyro, Accel XYZ and temperature and it appears there is an issue or two when simulating.
Irrespective of what the temperature is set at, it always returns 36.
The GetAccelReadingReal doesn't appear to work at all, and whilst the GetAccelReading does provide a return it is nothing like the scale values.
If I get a chance I'll try in hardware too, but at present it looks like a component issue (well at least if simulating).
Regards
With AD0 connected to Ground the module should then be set for address 0x68 (or if connected to +v 0x69).
I've just tried simulating an example file I downloaded a while back (possibly when using v8) and it didn't simulate. I then created a new chart in v10 with just the component reading Gyro, Accel XYZ and temperature and it appears there is an issue or two when simulating.
Irrespective of what the temperature is set at, it always returns 36.
The GetAccelReadingReal doesn't appear to work at all, and whilst the GetAccelReading does provide a return it is nothing like the scale values.
If I get a chance I'll try in hardware too, but at present it looks like a component issue (well at least if simulating).
Regards
-
- Valued Contributor
- Posts: 1186
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 289 times
- Been thanked: 417 times
Re: PIC18F25K22 UART ERROR
Hi
I do have a MPU6050. Don't think I'll get a chance to play until later in the week though.
I'll check again simulation and if still an issue I'll document in the "bugs" section.
Regards
I do have a MPU6050. Don't think I'll get a chance to play until later in the week though.
I'll check again simulation and if still an issue I'll document in the "bugs" section.
Regards