Page 17 of 19

Re: PIC18F25K22 UART ERROR

Posted: Wed Oct 11, 2023 9:32 pm
by chipfryer27
Hi

There was a bug with the component which Martin fixed. I've tested in v10 and it will soon be available via updates.

I'll try with hardware later in the week to see if I can read anything.

Regards

Re: PIC18F25K22 UART ERROR

Posted: Thu Oct 12, 2023 6:31 am
by chipfryer27
Hi

Earlier you wrote
if it is possible to connect an HD micro camera with an interface to a PIC , and store video to a SD disk.
Have a look at Arducam

https://www.arducam.com/

They specialise in such and even have products for connection to modest microcontrollers e.g. https://www.arducam.com/camera-for-any-microcontroller/

I also see some very cheap "no name" cameras available in the usual markets but they appear to be problematic with little or no datasheets / instructions to help. Reviews vary between "stay away" and "just, but with a lot of hard work".

Regards

Re: PIC18F25K22 UART ERROR

Posted: Fri Oct 13, 2023 9:21 pm
by chipfryer27
Hi

Tested an MPU6050 on hardware today (using Medelec35's updated component) and obtained readings.

Regards

Re: PIC18F25K22 UART ERROR

Posted: Tue Oct 24, 2023 11:44 am
by chipfryer27
Hi

Have you looked at camera's yet?

I ask as I am considering including the ability to obtain a still image into a project I'm working on. It's unlikely I'd want to transmit the image, more likely to just store on an SD card. Although in saying that I'm hoping the deployment will be in WiFi range so transmitting the still isn't completely out of the question.

Regards

Re: PIC18F25K22 UART ERROR

Posted: Thu Nov 09, 2023 6:48 pm
by SILVESTROS
Hi,
I was tested MPU6050, that works after update of component..
About micro camera ,I need a device with dimensions no more than 21mm X 21mm , so I'll select a cheap camera about 1-1.2MP...I need about 150 min. recording time and store as file to an SD disk...I'll use a PIC mcu to control recording with start/stop/delete and a led indicator of battery charge level..the main board must be mobile , so I'll use a Li-po battery 3.7V..Do you have an idea on what component(s) can I use to record and store to SD disk?..camera output must be analog or digital ? Later I'll try to control the recorded file from an android phone with an app.Thanks.
Regards

Re: PIC18F25K22 UART ERROR

Posted: Thu Nov 09, 2023 8:36 pm
by chipfryer27
Hi

I've not looked at things really, been a little busy.

There are a few small, cheap offerings from the usual web sites but from what I have read it is a bit hit and miss when using them. Read the reviews seems the best advice if contemplating them.

I did look at the Arducam series of cameras. In particular they have a still (or extremely low fps) option accessible from pretty much any uC by using SPI. A bit more costly but seems very easy to interface with.

I'd be interested to read how you get on with your project though.

Regards

Re: PIC18F25K22 UART ERROR

Posted: Mon Dec 18, 2023 10:03 pm
by chipfryer27
Hi Silvestros

Just wondering if you got any further regarding cameras?

I've been rather busy recently so haven't had any time to experiment with the Arducams I spoke of

Regards

Re: PIC18F25K22 UART ERROR

Posted: Tue Feb 20, 2024 10:56 pm
by SILVESTROS
Hi
I had a health problem, so I wasn't able to work about new project with cameras..
Next days I'll try to find some suitable small cameras about 1MP .
About previous project , that sends sensors data to PC with mobile modules with PIC18F46K22 + ESP8266, I get sample frequency about 10/sec..I would like to increase that frequency to 100/sec..Is it possible to do this with that 8bit MCU increasing clock frequency to max. (60MHz) and reduce delays in code, or to use 16bit MCU ? Thanks.
regards
Basil

Re: PIC18F25K22 UART ERROR

Posted: Tue Feb 20, 2024 11:13 pm
by chipfryer27
Hi

Sorry to hear of your health issues and hope you are feeling better now.

I need to refresh myself with the project, but I think the limiting factor will be the speed (and subsequent processing) of the transmission link. To send 100 messages per second means everything must be done in less than 10mS. That includes capture of data, processing, transmission etc.

I will get back to you once I refresh my memory.

Regards

Re: PIC18F25K22 UART ERROR

Posted: Thu Feb 22, 2024 7:52 am
by chipfryer27
Hi

Unfortunately I can't really do much with hardware just now.

Limiting factors will be the collection of data, transmission and subsequent reception by Excel.

There are two delays that need to be considered in the transmitter(s).

In the ESP_Send macro when we tell the module we are sending a string and it's length, we then allow time for the module to respond before actually sending the string. This will be a limiting factor. Keeping everything the way it is, you could reduce this delay until you no longer get reliable transmission. You could modify to wait until you receive the ">" prompt but it may be simpler to just establish the time.

There will be a maximum rate your I2C sensors etc can return data. Increasing the I2C communications speed may help but not all devices can handle higher speeds. It's an easy try though.

Next, in the Main loop there is a generic delay to limit the number of times per second we sample and send data. Sort of speed control if you like. It is set to 10mS in the last chart you shared. This can be reduced to allow a faster iteration of the loop.

However whilst can control the above we can't control the other infrastructure. I believe you are using a WiFi router so that too will have a maximum throughput and your PC running Excel will have a limit too of how fast it can accept data.

I guess the easy way to establish maximum send rate would be to

1) reduce ESP_Send delay until you no longer get reliable transmission.
2) reduce Main delay until you no longer receive reliable data in Excel

Regards