But they dont have adc right? pizero/pi4/5? I nned to connect externnal adc. And what I have read that the extrenal adc connected to pi5/4 can not gurantee uninterrupted sampling because of linux OS.That depends of you wifi congestion and connection speed. In theory if your router is connected only to your Pico then you shouldn't have any problem. The 0.6 second of buffer inside the pico and the buffer from the rcvReader should take care of it.Ok so that means there is a delay between acquiring and sending data.
But that should not be a problem.
What I want to know is, is there any delay between multiple acquire? I mean for example in this manner, will there be gap in data for ith and i+1 second? Because I need to have every second of data (200 ksample each second).
You will loose data if you have congestion in your wifi signal. this includes,
- Other routers use the same channel. (your neighbour router wifi!)
- 2.4GHz is also use on bluetooth and microwave oven so keep them far away of the pico.
- Other appliances like , computer, cell phone, laptop, tablet etc,,,, are connected to the same router and channel.
- Distance from the router, need to go through wall and need to reduce transmission speed. at 200Ksamples / sec the minimum rate is around
2.5 Mbit/sec. so you need at least the double of that!
So the best way is to check what it is around. Use you cell phone to check the best wifi channel.
Add a router in bridge mode with dedicated wifi channel and connected to the ethernet port.
I'm using a pi4 since I can't use my Pi5 gpio to program the pico. I did run the system and I was able to get 5G bytes of data without any break out. (~ 1G bytes/ hour).
I also use a bridge like this one https://www.dlink.com/en/products/dap-1 ... e-extender
It is connected to the ethernet using a cable and the only wifi connected is the Pico.
In reality is not the code the problem but the environment of the wifi by itself!
If you really want be sure that you don't loose data use a PizeroW or a RaspberryPi3,4 or 5. This way you could have a buffer of 1M Bytes. This way you will have enough time to grab any packet without loosing one of them because of wifi congestion.
The other Idea is to connect using a line cable like Ethernet or RS-422 via serial baudrate . I think that you could acheive 7.8Mbaud.
Statistics: Posted by Pranjol93 — Sun Dec 24, 2023 7:24 am