Search found 54 matches

by chrisPyres66
Tue Dec 18, 2018 4:29 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 11
Views: 327

Re: problem when i receive data on Uart rx when i read

Opposite to your firmware, the last git have the same previous behavior.
by chrisPyres66
Tue Dec 18, 2018 4:26 am
Forum: Technical Discussion
Topic: compress ==> OSError: Out of memory !
Replies: 7
Views: 138

Re: compress ==> OSError: Out of memory !

Hello, I tested the last git version (3.3.0 displayed on openmv ide) with : import sensor, image, pyb, time, gc red_led=pyb.LED(1) blue_led=pyb.LED(3) red_led.off() blue_led.off() sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.VGA) sensor.skip_frames(time=500) quality...
by chrisPyres66
Mon Dec 17, 2018 5:14 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 11
Views: 327

Re: problem when i receive data on Uart rx when i read

Tx it works with my code test, do you github it ?
I could test this and jpg exception.
by chrisPyres66
Fri Dec 14, 2018 3:08 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 11
Views: 327

Re: problem when i receive data on Uart rx when i read

Lol, ok i try again ! Here is a new test code with image snapshot : import pyb,time, sensor sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) clock = time.clock() uart=pyb.UART(3,14400) uart.init(14400, bits=8, parity=None, stop=1) w...
by chrisPyres66
Thu Dec 13, 2018 2:55 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 11
Views: 327

Re: problem when i receive data on Uart rx when i read

Well, i discovered the problem when i tried to send image over UART to a master which does something else, lose a part of the data and try to restart a new synchronization. To reproduce the behavior, I send several datas by frame (like 0x0F 0x00 0x0F 0x00 0x0F 0x00 0x0F 0x00) every ~0.5s when the ca...
by chrisPyres66
Wed Dec 12, 2018 6:50 am
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 11
Views: 327

problem when i receive data on Uart rx when i read

Hello, I have got a problem when i receive data on Uart rx when i read. Here is my test code : import pyb,time red_led = pyb.LED(1) red_led.off() uart=pyb.UART(3,14400) uart.init(14400, bits=8, parity=None, stop=1) #, timeout_char=20 while(True): time.sleep(500) if uart.any(): uchar=uart.read(1) pri...
by chrisPyres66
Tue Dec 11, 2018 3:14 am
Forum: Technical Discussion
Topic: compress ==> OSError: Out of memory !
Replies: 7
Views: 138

Re: compress ==> OSError: Out of memory !

Thanks for your reply. I tested your solution below : import sensor, image, pyb red_led=pyb.LED(1) blue_led=pyb.LED(3) red_led.off() blue_led.off() sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.VGA) sensor.skip_frames(time=500) quality = 94 while(True): img=sensor.sn...
by chrisPyres66
Mon Dec 10, 2018 8:19 am
Forum: Technical Discussion
Topic: compress ==> OSError: Out of memory !
Replies: 7
Views: 138

compress ==> OSError: Out of memory !

Hello, I try to compress image continuously (every 10s) and i have some problem with the level of compression (between 0 and 100) Here is a test code : import sensor, image, pyb red_led=pyb.LED(1) red_led.off() sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.VGA) senso...
by chrisPyres66
Wed Dec 05, 2018 9:48 am
Forum: Project Discussion
Topic: flashing led detection with changing ambiant light
Replies: 1
Views: 101

flashing led detection with changing ambiant light

Dear all, I would like to discuss the best way (accuracy and consumption) to detect a flashing green led with a changing ambiant light from night to day. The led is lighting very quickly (around 20ms) every 4s. To be accurate, i used QQQVGA frame rate to have 84fps and catch the flashing light. I tr...
by chrisPyres66
Wed Dec 05, 2018 3:02 am
Forum: Technical Discussion
Topic: low power waiting for uart rx
Replies: 4
Views: 184

Re: low power waiting for uart rx

Here is the simplified code which works without activating the sleep mode import pyb, machine red_led = pyb.LED(1) red_led.off() uart = pyb.UART(3,14400) uart.init(14400, bits=8, parity=None, stop=1, timeout_char=20) while(True): #machine.sleep() uchar=uart.read(1) if uchar : uart.writechar(uchar[0]...
by chrisPyres66
Wed Dec 05, 2018 2:28 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1037

Re: Standby consumption

Thanks for your answer What kind of high efficient SMPS you use and have you replace the regulator of the M7 camera with it ? I found that there is no pull resistor on OV7725 PWDN pin. I see 500uA by adding 4.7K Ohm pull up on OV7725 PWDN ( PCB pattern is covered. so need to scratch off printed ink ...
by chrisPyres66
Tue Dec 04, 2018 10:41 am
Forum: Technical Discussion
Topic: low power waiting for uart rx
Replies: 4
Views: 184

low power waiting for uart rx

Hello, I would like to optimize consumption during the time the cpu wait the uart receipt. I wrote below the different way and names i found on internet documentation about : STM32 ------------ machine ---------- pyb --------------- time sleep ---------------- idle ------------ wfi ---------- time.s...
by chrisPyres66
Tue Dec 04, 2018 9:15 am
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 356

Re: Use of callback function in sleep mode

Ok, you are right i should do :

Code: Select all

git checkout .
git pull
i confirm callback funtion in sleep and deepsleep mode
Thanks,
by chrisPyres66
Tue Dec 04, 2018 2:53 am
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 206

Re: F7 consumption optimization

Hi, Yes cpufreq module is in the source code, and it still seems worked... As adviced, I used cubeMX for clock and i could define OMV_XCLK_FREQUENCY to define the good acquisition period for the sensor. Unfortunately, i am still a bit lost between all the clock and voltage parameters to optimize the...
by chrisPyres66
Fri Nov 30, 2018 6:15 am
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 356

Re: Use of callback function in sleep mode

Hello, I cloned the last git i think with git clone --recursive https://github.com/openmv/openmv.git compiled and program the firmware but the code below does not work import pyb, machine, time red_led = pyb.LED(1) red_led.off() def test(arg): red_led.toggle() return rtc = pyb.RTC() rtc.datetime((20...
by chrisPyres66
Wed Nov 28, 2018 11:00 am
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 206

Re: F7 consumption optimization

Thanks for answer, Yes i tried the cpufreq module like : import cpufreq #cpufreq.set_frequency(cpufreq.CPUFREQ_120MHZ) and i seemed to work. I used the cubemx with the value from py_cpufreq.c like in the previous post. I joined : the cubemx file where there is only a difference for I2C1 (30Mhz in pl...
by chrisPyres66
Wed Nov 28, 2018 6:22 am
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 206

F7 consumption optimization

Hello, I try to optimize the consumption, and i would like to start the camera at 120Mhz. Before compiling, i changed in /openmv/src/cmsis/src/st/system_stm32fxxx.c #elif defined (STM32F765xx) // 120MHz/48Mhz in place of 216MHz/48MHz : flash_latency = FLASH_LATENCY_3; // FLASH_LATENCY_7; RCC_OscInit...
by chrisPyres66
Fri Nov 23, 2018 2:48 am
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 356

Re: Use of callback function in sleep mode

Ok i try to get rtc and rebuild !
Or wait for new release if i dont success !
by chrisPyres66
Thu Nov 22, 2018 10:28 am
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 356

Use of callback function in sleep mode

Dear all, I try to use a callback function when the camera wakeup from a sleep with this code : import pyb, machine, time red_led = pyb.LED(1) red_led.off() def test(line) : red_led.toggle() return rtc = pyb.RTC() rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0)) rtc.wakeup(500, test(1) ) while(True): mach...
by chrisPyres66
Thu Nov 22, 2018 10:08 am
Forum: Technical Discussion
Topic: use of time.avg() in a function
Replies: 1
Views: 232

use of time.avg() in a function

Dear all, I try to get the time between two interrupts from a push on a button with the code : import time, pyb testClock = time.clock() def test(line) : print( testClock.avg() ) testClock.tick() return testClock.tick() pyb.ExtInt('P7', pyb.ExtInt.IRQ_FALLING, pyb.Pin.PULL_UP, test) while(True): tim...
by chrisPyres66
Wed Nov 21, 2018 6:25 am
Forum: Technical Discussion
Topic: Increase uart sending time between bytes of an image
Replies: 2
Views: 1195

Re: Increase uart sending time between bytes of an image

Thanks for your answer.

I simplified the code to clarify my question but i use a compressed image.
To do like you said, i did :

Code: Select all

img = bytearray(sensor.snapshot().compress)
datasize = img.size()
for i in range(datasize):
	uart.writechar(img[i])
	print(img[i])
by chrisPyres66
Tue Nov 20, 2018 3:29 am
Forum: Technical Discussion
Topic: Increase uart sending time between bytes of an image
Replies: 2
Views: 1195

Increase uart sending time between bytes of an image

Dear All, I send images on UART and it works fine. Unfortunately, the receiver is busy and i need to send bytes slower. Here is my code : img=sensor.snapshot() datasize = img.size() sendsize = uart.write(img) print(datasize, '=', sendsize) I have any idea to get byte after byte from an image object....
by chrisPyres66
Thu Nov 15, 2018 11:11 am
Forum: Technical Discussion
Topic: Pull up on Nrst pin
Replies: 2
Views: 1356

Re: Pull up on Nrst pin

Ok, it must be usefull to shunt boot0 and nrst, and havec 2/3 of VCC on boot0 and nRST.
If you have only the weak resistor, the voltage is only 1/2 of Vcc.
by chrisPyres66
Tue Nov 13, 2018 11:15 am
Forum: Technical Discussion
Topic: Pull up on Nrst pin
Replies: 2
Views: 1356

Pull up on Nrst pin

Dear All,

I am testing the schematic and i discovered a pull up resistor on reset pin that is not recommended at all in the manual of STM32F7.
Did i misunderstand something ?

Thanks for your light,
by chrisPyres66
Wed Oct 24, 2018 12:04 pm
Forum: Technical Discussion
Topic: Compilation optimization for easy debugging
Replies: 1
Views: 676

Compilation optimization for easy debugging

Dear All, I tried to remove compilation optimization to get easy the debbugging. Unfortunately, i removed the wrong option -o in bootloader makefile here : .... $(BUILD)/%.o : %.c $(ECHO) "CC $<" $(CC) $(CFLAGS) -c -o $@ $< ... Now the compilation stops with missing separator in the main makefile in...
by chrisPyres66
Thu Oct 11, 2018 11:51 am
Forum: Technical Discussion
Topic: how include haarcascade file in program
Replies: 7
Views: 588

Re: how include haarcascade file in program

Ok i removed the wrong files (new format) from this post, i will try to convert this new to old format and convert it again for openmv camera.
Thanks,
by chrisPyres66
Thu Oct 11, 2018 11:48 am
Forum: Technical Discussion
Topic: STM32F765VIT6 or STM32F765VGT6
Replies: 2
Views: 334

STM32F765VIT6 or STM32F765VGT6

Dear All,

I remarked on my camera board, the uc is STM32F765VIT6 and not the STM32F765VGT6 like the schematic.
Can i use STM32F765VGT6 if i want like the schematic because the flash memory is half size ?

Thanks,
by chrisPyres66
Wed Oct 10, 2018 4:03 am
Forum: Technical Discussion
Topic: how include haarcascade file in program
Replies: 7
Views: 588

Re: how include haarcascade file in program

I can see the xml haar cascade file headers are different if i did haar cascade file with opencv under linux cascade trainer gui soft under microsoft The differences are about tag: [Opencv] , [cascade trainer gui] like size: [height, width] , [size] stage threshold: [stageThreshold], [stage_threshol...
by chrisPyres66
Wed Oct 10, 2018 2:33 am
Forum: Technical Discussion
Topic: with get_pixel i get the same three RGB mean values ?
Replies: 3
Views: 342

Re: with get_pixel i get the same three RGB mean values ?

Thanks, i do this but does that mean get_pixel is depreciated ?
by chrisPyres66
Tue Oct 09, 2018 4:46 am
Forum: Technical Discussion
Topic: how include haarcascade file in program
Replies: 7
Views: 588

Re: how include haarcascade file in program

Thanks, it is very helpfull. I try to detect "OK" like this http://thefanzine.com/wp-content/uploads/2012/04/2436.jpg I think a CNN would be better to detect letters, but i dont have gpu in my computer right now to check it. I used your method to create headers with different xml haarcascade files w...
by chrisPyres66
Tue Oct 09, 2018 3:36 am
Forum: Technical Discussion
Topic: with get_pixel i get the same three RGB mean values ?
Replies: 3
Views: 342

with get_pixel i get the same three RGB mean values ?

Dear all, Here is my code where i try to get the three RGB mean values of a roi. Unfortunately, i have alway the same three RGB mean values opposite to the RGB mean values written on the RGB color space charts under the image in openmv ide. import sensor, image, time sensor.reset() sensor.set_pixfor...
by chrisPyres66
Fri Oct 05, 2018 3:35 am
Forum: Technical Discussion
Topic: how include haarcascade file in program
Replies: 7
Views: 588

Re: how include haarcascade file in program

Yes, i embed the binary cascade.cascade by creating an hex array and create file with make_flash_fs(). I dont know how to gerenate the C headers. But my problem is still the same when i debug the program during the flash mount, it is not ever well mounted (file permission ?)... In this case, when i ...
by chrisPyres66
Thu Oct 04, 2018 6:13 am
Forum: Technical Discussion
Topic: how include haarcascade file in program
Replies: 7
Views: 588

how include haarcascade file in program

Dear all, I did my own haarcascade file and i want to include into program not to use SDCard. Both main.py and haarcascade files work either from openIDE and SDCarrd, or only with SDCard. I converted both main.py to ascii array and binary haardcascade file to hex array which are dynamically created ...
by chrisPyres66
Mon Oct 01, 2018 11:22 am
Forum: Technical Discussion
Topic: New QTCreator 4.7.1 with clang code model
Replies: 2
Views: 254

Re: New QTCreator 4.7.1 with clang code model

Apparently, if i disactivate the plugins clang code model, the errors disappears.
But the "classic" code model is no longer developed and everything new goes to Clang...
by chrisPyres66
Mon Oct 01, 2018 5:07 am
Forum: Technical Discussion
Topic: New QTCreator 4.7.1 with clang code model
Replies: 2
Views: 254

New QTCreator 4.7.1 with clang code model

Dear All,

I upgraded QTCreator 4.7.1 with clang code model.
Unfortunately, i have many new editor errors without code change and although i can still compile.

Is someone done it and find a solution ?

Thanks,
by chrisPyres66
Fri Sep 21, 2018 4:24 am
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 713

Re: use of haar classifier for openmv

Dear Ibrahim, Thanks for your help and time. I believe to understand quantization is like rounding to pass 32bit float to 8bit fixed . I tried to read converted file but it looks like binary (I dont know how to transform it to array in the program ?). Do you have idea about detection percentage we c...
by chrisPyres66
Mon Sep 17, 2018 4:56 am
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 713

Re: use of haar classifier for openmv

Dear, As you said, OpenCV detectMultiScale() has scale (>1: generally 1.15 to 1.35) and minNeighbors (>=0: generally 3) parameters. Compare to it, image.find_features() has scale (>1) and threshold (0-1) parameters. To test the classifier it is easier to do it with opencv, but i am not sure if i can...
by chrisPyres66
Thu Sep 13, 2018 8:20 am
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 713

Re: use of haar classifier for openmv

Dear, I am sorry there is not an issue with stages because you can choose to train your classifier with 20 stages and your training stops before because 8 stages is enough. Therefore I do training with - base format save - Haar type - Basic Haar features - Gentle adaboost (GAB) Ok, but what is the l...
by chrisPyres66
Mon Sep 10, 2018 9:19 am
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 713

use of haar classifier for openmv

Dear all, I try to do my own Haar classifier to use it on a M7 Openmv camera. What i understood is : - to use image.HaarCascade("haar_file_on_sdcard") to load the cascade.xml specific for openmv. - then i use find_features to get the rectangle of my object in the image To get this cascade.xml specif...
by chrisPyres66
Mon Sep 10, 2018 8:54 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1037

Re: Standby consumption

Dear, I used your last firmware with shutdown function (still with version name to 3.1) and your code : # Deep Sleep Mode Example # This example demonstrates the low-power deep sleep mode plus sensor shutdown. # Note the camera will reset after wake-up from deep sleep. To find out if the cause of re...
by chrisPyres66
Wed Sep 05, 2018 9:35 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1037

Re: Standby consumption

I am sorry, but i have still got 1.6mA...
by chrisPyres66
Tue Sep 04, 2018 5:07 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1037

Re: Standby consumption

I executed the bootloader from OpenMV IDE with the firmware you sended me. At the bottom right of the OpenMV IDE, i have the firmware version equal to 3.1.0. The consumption is still more than 1mA (1.6mA). The code has not changed. I should get something around 3.4uA for STM32 + 10-20uA for OV7725 +...
by chrisPyres66
Mon Sep 03, 2018 6:26 am
Forum: Technical Discussion
Topic: DVDD: Power supply (+1.8v) for digital core to ground ?
Replies: 2
Views: 299

Re: DVDD: Power supply (+1.8v) for digital core to ground ?

In OV7725 datasheet, i read the answer :


Thanks to the Bit[3]: Internal regulator ON/OFF selection of AREF1 register, the 1.8v is internally provided.


Solved
by chrisPyres66
Mon Sep 03, 2018 5:28 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1037

Re: Standby consumption

Hi, I loaded this new firmware in a M7 openmv camera without any consumption change. My code is now : import sensor, machine sensor.sleep(True) # Enable sensor sleep mode (saves about 40mA + 1mA). machine.deepsleep() # Reduces power consumption to less than 50 uA The current is around 1.84mA. I also...
by chrisPyres66
Mon Sep 03, 2018 4:01 am
Forum: Technical Discussion
Topic: DVDD: Power supply (+1.8v) for digital core to ground ?
Replies: 2
Views: 299

DVDD: Power supply (+1.8v) for digital core to ground ?

Dear All, I am looking the schematic of the M7 openmv camera at https://github.com/openmv/openmv-boards/blob/master/openmv3/openmv3.pdf and i am surprised than the DVDD pin of OV7725 is connected to ground through a capacitor in place of +1.8V. In OV7725 datasheet, i read any explanation about it. I...
by chrisPyres66
Wed Aug 29, 2018 6:17 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1037

Standby consumption

Dear all, I try to use the camera in lowest consumption mode but i cant get under 1.6mA with M7 or 2.5mA with M4. I measured with a microamps DM3068. My code is simple : import pyb, sensor, cpufreq cpufreq.set_frequency(cpufreq.CPUFREQ_120MHZ) sensor.sleep(True) # Enable sensor sleep mode (saves abo...
by chrisPyres66
Mon Jul 23, 2018 7:45 am
Forum: Technical Discussion
Topic: save before programming
Replies: 3
Views: 375

Re: save before programming

Thanks again, As you said, It is not usefull to read the memory because there are many way to reload the the camera : - load all through the ide by shunting the boot and rst - load the bootloader.elf through stm32cubeprogrammer for example and the firmware through the ide - load only the firmware.el...
by chrisPyres66
Mon Jul 23, 2018 7:37 am
Forum: Technical Discussion
Topic: where is main.py ?
Replies: 4
Views: 547

Re: where is main.py ?

Thanks, i am just beginning with openmv.
Therefore i cant say i am sure of what i do, but i will verify this in future and keep you informed.
by chrisPyres66
Fri Jul 20, 2018 2:49 am
Forum: Technical Discussion
Topic: where is main.py ?
Replies: 4
Views: 547

Re: where is main.py ?

Dear Kwagyeman, Thanks for your answer, it is was my first idea to do this but the program never went there because of a wrong if : if ( res == FR_OK) { // FR_NO_FILESYSTEM { // Chris Modif // Create a fresh fs make_flash_fs(); // here is created main.py .... } else ... Is it a bug or is it normal ?...

Go to advanced search