Hi,
ok..now I'll try to calibrate data...many thanks again...raki is good as Crete , but very "strong" !!
regards
PIC18F25K22 UART ERROR
-
- Posts: 120
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
Hi
You're welcome.
Playing more with the ESPs was something I was meaning to do but never got quite around to, so this was a fun thing for me.
Not as much fun as Raki then a Friday night in Avalon (Xania harbour) though...
Regards
You're welcome.
Playing more with the ESPs was something I was meaning to do but never got quite around to, so this was a fun thing for me.
Not as much fun as Raki then a Friday night in Avalon (Xania harbour) though...

Regards
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
HI,
summer in Crete is coming..in reality the island has summer almost all the year..of course raki has no season..
now I'm trying to convert raw data of sensors to useful values..then , I'll try to use more than one senders ,,,
how many senders can I use to get data from one receiver ? ..Is correct that ESP as Access Point can receive data from 5 clients max.? in that case what changes need the receiver chart ?
regards
summer in Crete is coming..in reality the island has summer almost all the year..of course raki has no season..
now I'm trying to convert raw data of sensors to useful values..then , I'll try to use more than one senders ,,,
how many senders can I use to get data from one receiver ? ..Is correct that ESP as Access Point can receive data from 5 clients max.? in that case what changes need the receiver chart ?
regards
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
Hi
When I was there (late Jan until Aug) you could still see snow on the mountains until April. Wasn't too cold though in Xania itself and the Raki kept me warm on the walk back
You did notice the change in weather around now though. Unfortunately I didn't get much chance to explore the island but I'd love to go back.
I found this very interesting blog which will help explain processing the raw data from the MAX30100.
https://morf.lv/implementing-pulse-oxim ... -max30100/
I'm not sure how well an 8-bit microcontroller would cope with DSP but if connecting to a PC running either FC App Developer or Excel, then the PC can do the hard work for you.
If you were using multiple transmitters you would need a way to differentiate between the readings being sent from each transmitter, perhaps include an ID value such as T1 / T2 / T3 etc at the beginning to give a string of T1,1,-2255,-1920,-2131,1344,752 from transmitter 1?
Offhand I'm unsure how many clients can connect to an ESP in AP mode but I'll have a look later.
Regards
When I was there (late Jan until Aug) you could still see snow on the mountains until April. Wasn't too cold though in Xania itself and the Raki kept me warm on the walk back

I found this very interesting blog which will help explain processing the raw data from the MAX30100.
https://morf.lv/implementing-pulse-oxim ... -max30100/
I'm not sure how well an 8-bit microcontroller would cope with DSP but if connecting to a PC running either FC App Developer or Excel, then the PC can do the hard work for you.
If you were using multiple transmitters you would need a way to differentiate between the readings being sent from each transmitter, perhaps include an ID value such as T1 / T2 / T3 etc at the beginning to give a string of T1,1,-2255,-1920,-2131,1344,752 from transmitter 1?
Offhand I'm unsure how many clients can connect to an ESP in AP mode but I'll have a look later.
Regards
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
Hi,
I've made a hardware copy of sender/receiver to continue tests for adding more transmitters..hardware/charts are the same as prototype but receiver don't create AP...what is the reason for that ?
regards
I've made a hardware copy of sender/receiver to continue tests for adding more transmitters..hardware/charts are the same as prototype but receiver don't create AP...what is the reason for that ?
regards
- Attachments
-
- S3.png (233.25 KiB) Viewed 11121 times
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
Hi
As mentioned earlier, the Component Macro when initialising looks for a different response than what the ESP returns so will always "fail". Therefore if using the Component Macros rather than "AT" commands, we need to ignore the "return" value when initialising. This means we don't actually know whether or not we have successfully initialised.
In the chart we assume we have and move on. The next interaction is when we create the AP and we can then check if successful. If so we move on, if not we reset.
Clearly from the above the ESP fails to create and resets.
If you haven't changed anything in the chart then I would strongly advise checking your connections to the ESP and associated settings.
If you post the chart you are using I can have a look in case anything is wrong.
Regards
As mentioned earlier, the Component Macro when initialising looks for a different response than what the ESP returns so will always "fail". Therefore if using the Component Macros rather than "AT" commands, we need to ignore the "return" value when initialising. This means we don't actually know whether or not we have successfully initialised.
In the chart we assume we have and move on. The next interaction is when we create the AP and we can then check if successful. If so we move on, if not we reset.
Clearly from the above the ESP fails to create and resets.
If you haven't changed anything in the chart then I would strongly advise checking your connections to the ESP and associated settings.
If you post the chart you are using I can have a look in case anything is wrong.
Regards
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
Hi,
I was made some changes in delays..connections seems ok...maybe there is something wrong in hardware.
I would like to check the chart first..
regards
I was made some changes in delays..connections seems ok...maybe there is something wrong in hardware.
I would like to check the chart first..
regards
- Attachments
-
- ESP8266-RECEIVER-PIC18F25K22.fcfx
- (30.61 KiB) Downloaded 756 times
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
Hi
I don't see anything untoward, so I would double check connections. Although in saying that it is Good Friday and I'm about to go out and make it a Great Friday
If you connect your USB-Serial Rx to the ESP Tx (@115200) you should see an "echo" of commands being sent by the PIC. If you get nothing they definitely are not talking to each other.
Regards
I don't see anything untoward, so I would double check connections. Although in saying that it is Good Friday and I'm about to go out and make it a Great Friday

If you connect your USB-Serial Rx to the ESP Tx (@115200) you should see an "echo" of commands being sent by the PIC. If you get nothing they definitely are not talking to each other.
Regards
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
Hi,
the problem was in ESP...I was changed with a new and now I have "waiting for Data"..now I'll make some transmitters to test if receiver can get data from more than one senders.
I found that ESP-8266 can connect with up to 5 clients..I'll check it...
regards
the problem was in ESP...I was changed with a new and now I have "waiting for Data"..now I'll make some transmitters to test if receiver can get data from more than one senders.
I found that ESP-8266 can connect with up to 5 clients..I'll check it...
regards