Search found 88 matches

by OutoftheBOTS
Tue Oct 16, 2018 7:41 pm
Forum: Technical Discussion
Topic: utensor
Replies: 1
Views: 25

utensor

Not sure if you guys seen this? https://github.com/uTensor/uTensor They have developed a way of turning a trained NN into a cpp file to run on an MCU. The example they gave was they compressed a digit hand writing recognition CNN into 32kb and ran it on a MCU. From a quick read it seems they Quantiz...
by OutoftheBOTS
Fri Aug 10, 2018 11:28 pm
Forum: Technical Discussion
Topic: 8bit grey scale
Replies: 2
Views: 134

Re: 8bit grey scale

Thank you :)
by OutoftheBOTS
Fri Aug 10, 2018 6:57 pm
Forum: Technical Discussion
Topic: 8bit grey scale
Replies: 2
Views: 134

8bit grey scale

I am helping a friend out with his STM32F4 Ardunio project and have a question I hope you guys don't mind helping me with. I was reading the datasheet for the OV7725 and can't see how it can be setup to output 8bit grey scale. Do you guys setup the OV7725 in 8bit grey scale or does the DCMI convert ...
by OutoftheBOTS
Sun Jul 01, 2018 2:37 am
Forum: General Topics
Topic: Live REPL
Replies: 1
Views: 160

Re: Live REPL

There is a serail terminal in OpenMV IDE if you go to tools menu then click open terminal. Also you can just use any serial terminal program to access the openMV cam, I have used putty myself. It took me a little to get used to the OpenMV IDE but once I did I found it a much better way of interactin...
by OutoftheBOTS
Thu Jun 28, 2018 6:18 pm
Forum: Technical Discussion
Topic: development enviroment used by OpenMV
Replies: 6
Views: 287

Re: development enviroment used by OpenMV

Looking at the code it seems atm that because the machine.I2C is a software driver that any pin can used this is also inline with the docs see http://docs.openmv.io/library/machine.I2C.html.

For me to create the interrupt I will need the SDA pin to be set. I see your using Port B pin 11 for your SDA2
by OutoftheBOTS
Thu Jun 28, 2018 5:16 pm
Forum: Technical Discussion
Topic: development enviroment used by OpenMV
Replies: 6
Views: 287

Re: development enviroment used by OpenMV

I will have the read the differences between registers for the STM32F1, STM32F4, STMF7 and STMH7 as I think for there might be some differences.
by OutoftheBOTS
Thu Jun 28, 2018 12:31 am
Forum: Technical Discussion
Topic: development enviroment used by OpenMV
Replies: 6
Views: 287

Re: development enviroment used by OpenMV

OK I have my I2C slave now that master can read or write up to 256 bytes in 1 transmission, I have also made a timeout on it so that it can't get stuck and will always return to main program if stuck in a loop.

updated code here https://github.com/OutOfTheBots/I2C_Slave-STM32f10x
by OutoftheBOTS
Wed Jun 27, 2018 12:46 am
Forum: Technical Discussion
Topic: development enviroment used by OpenMV
Replies: 6
Views: 287

Re: development enviroment used by OpenMV

I have got a basic software I2C slave working on my STM32F1 dev board. It uses a interrupt on the SDA line to detect the start of a transmission from master and interrupt the main program. It doesn't have a timeout watch dog so this needs to be added still. Also at the moment the master can only rea...
by OutoftheBOTS
Sun Jun 24, 2018 6:01 pm
Forum: General Topics
Topic: UART Loop
Replies: 5
Views: 325

Re: UART Loop

U do know that u need to connect the TX (transmit pin) one device goes to the RX (receive pin) on the other device.
by OutoftheBOTS
Sat Jun 23, 2018 5:27 pm
Forum: Project Discussion
Topic: UART to NodeMcu
Replies: 14
Views: 576

Re: UART to NodeMcu

The NodeMcu is a ESP8266 chip and I believe it only has 36kB of RAM. I played with it a bit and it is great as a node for IOT applications with smaller RAM needs. I changed to its bigger brother the ESP32 because it has much bigger 520 kB SRAM and also there is dev boards with external psRAM of anot...
by OutoftheBOTS
Fri Jun 22, 2018 2:42 am
Forum: Project Discussion
Topic: automatic Pick & Place robot arm with MV
Replies: 7
Views: 349

Re: automatic Pick & Place robot arm with MV

If you make the background a certain colour different from anything it has to look for then you can threshold out the back ground and what ever is left will be what your looking for. Not sure if OpenMV cam allows find blobs on the binary image left but if it does then it will find everything that is...
by OutoftheBOTS
Tue Jun 19, 2018 11:48 pm
Forum: Technical Discussion
Topic: development enviroment used by OpenMV
Replies: 6
Views: 287

development enviroment used by OpenMV

I have started to work on a software I2C slave driven by interrupts on the SDA and SCL lines. At the moment I have been playing with this dev board http://wiki.stm32duino.com/index.php?title=Blue_Pill that uses a STM32F103C8 chip and just programming with Ardunio IDE but not using any of the Ardunio...
by OutoftheBOTS
Mon Jun 18, 2018 5:50 pm
Forum: Project Discussion
Topic: Sending an image from open mv to Raspberry Pi over 1000ft
Replies: 4
Views: 293

Re: Sending an image from open mv to Raspberry Pi over 1000ft

You only ever as fast as your slowest link. Machine vision requires 2 steps busing the data (image) then processing the data. Quite often unless your using parallel (openMV uses 8 bit parallel betweeen camera and processor) the slowest part is the busing of the data not the processing step. I think ...
by OutoftheBOTS
Fri Jun 15, 2018 4:46 pm
Forum: Project Discussion
Topic: Sending an image from open mv to Raspberry Pi over 1000ft
Replies: 4
Views: 293

Re: Sending an image from open mv to Raspberry Pi over 1000ft

WOW 100f0t That's a long way to maintain signal over a cable. I have heard of people using old school rs232 at those sort of distances see https://en.wikipedia.org/wiki/RS-232#Limitations_of_the_standard You can buy USB to RS232 adapters very cheap but you will have to have a very high quality cable...
by OutoftheBOTS
Tue Jun 12, 2018 3:26 am
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 382

Re: I2C.SLAVE

Thanks for the links I will have a look over the code. :)
by OutoftheBOTS
Tue Jun 12, 2018 2:13 am
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 382

Re: I2C.SLAVE

That said, while the camera is fast enough to setup access for the I2C I'm not sure hw will handle not seeing the I2C start condition. Yes I think that in the end it may require writing a software I2C slave that is triggered by a interrupt on the SCL pin. I have spent the day trying to hack the Leg...
by OutoftheBOTS
Mon Jun 11, 2018 9:06 pm
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 382

Re: I2C.SLAVE

I am playing with trying to make the OpenMV as a slave I2C with the Lego brick as a master so I can't change any of the protocol at the master end. So basically I would set up a 8 byte buffer with (x,y,w,h) as unsigned short int and every loop of the image processing I would update this 8 byte buffe...
by OutoftheBOTS
Mon Jun 11, 2018 7:26 pm
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 382

I2C.SLAVE

I want to use OpenMV as a I2C slave . How can I create a call back for when the master requests data from the OpenMV slave?? I notice in the official Micro-Python port they have a switch callback that triggers a interupts when the switch connected to a pin is pressed. I assume that I need something ...
by OutoftheBOTS
Mon Jun 11, 2018 6:31 pm
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 258

Re: I2C pullups

Ok I will see if I can do my very first ever PR on github :)
by OutoftheBOTS
Mon Jun 11, 2018 5:59 pm
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 258

Re: I2C pullups

Maybe you need to add the I2C class docs http://docs.openmv.io/library/pyb.I2C.html that no pullups are provided on the OpenMV cam and users need make sure there is pullups on any I2C devices they connect to the bus.
by OutoftheBOTS
Mon Jun 11, 2018 5:31 pm
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 258

Re: I2C pullups

Thank you :) I want to add my own pullups anyway as want to use 82K pullups instead of 10K. But now I know the difference in running my MicroPython script on OpenMV compared to other boards running MicroPython. For OpemMv you have to change your script to add turning on pullups or use external pullu...
by OutoftheBOTS
Mon Jun 11, 2018 5:08 pm
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 258

Re: I2C pullups

Just so I understand everything properly. In your example i2c_control1.py you use the code from pyb import I2C i2c = I2C(2, I2C.MASTER) # The i2c bus must always be 2. mem = i2c.mem_read(256, 0x50, 0) # The eeprom slave address is 0x50. But nowhere do you use the Pin class to set the SDA and SCL lin...
by OutoftheBOTS
Mon Jun 11, 2018 7:31 am
Forum: General Topics
Topic: Changing directory path
Replies: 10
Views: 488

Re: Changing directory path

Ok it is going to depend upon how you encode the data at the OpenMV cam end to how the data needs to decoded at the RPi end. Probably the most common used methods for encoding data to be sent over UART in python is json, pickle or struct. A google search will explain each of them :) I mainly use str...
by OutoftheBOTS
Mon Jun 11, 2018 6:24 am
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 258

I2C pullups

Ok all the Dev boards that I have used have had internal pullups on the I2C lines (usually on the chip that drives them so it can be driven by software) I just measured the voltage on the I2C pins when I ran a script that created a I2C bus and the I2C lines stayed low, I assume this means there isn'...
by OutoftheBOTS
Sat Jun 09, 2018 6:35 am
Forum: General Topics
Topic: TFT LCD Screen module
Replies: 0
Views: 168

TFT LCD Screen module

OK I seemed to have everything working well for both a little 1.77" ST7735 screen and a 2.4" ILI9341 screen. See the demo at https://www.youtube.com/watch?v=onzi71RsGXw&feature=youtu.be I have written hopefully a user friendly driver and it can be found at https://github.com/OutOfTheBots/OpenMV_TFT ...
by OutoftheBOTS
Sat Jun 09, 2018 3:34 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

Um, also, if you'd like... please submit a PR to the LCD module
Ha Ha Ha I haven't yet learnt to use github but do need to start.
by OutoftheBOTS
Sat Jun 09, 2018 3:23 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

It works perfectly now :) I can stream 320x240 images to both the screen and IDE at 12fps and if I turn off the IDE then I get 16fps. I will cleanup my code and make a nice module with both the code for the 160x128 screen and the 320x240 screen and make it public under MIT and also make a nice video...
by OutoftheBOTS
Sat Jun 09, 2018 2:49 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

I seem to be good at finding bugs, not sure if developers love me or hate me :) How come it affected QVGA but doesn't affect QQVGA ?? I did find a way to make it work although at a super slow frame rate. If I write each frame to the file then open the file and write it to SPI see https://www.youtube...
by OutoftheBOTS
Fri Jun 08, 2018 7:32 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

Do you have a saleae logic probe or something you can decide SPI packets with? unfortunately No as they are not cheap. I have made a video to explain the problem well see https://youtu.be/Cqv-jPv-Yz0 I first load a 320x240 BMP file to the screen to show the screen works properly in full screen. I t...
by OutoftheBOTS
Fri Jun 08, 2018 4:41 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

I don't know what that screen expects so it's hard for me to help you The screen expects a 16bit 320x240 images so I basicly just want to to transfer what's in the RGB565 QVGA fb to the SPI. It all works very well in 160x120 RGB565 but when using 320x240 RGB565 then only the first 1/6th of the imag...
by OutoftheBOTS
Fri Jun 08, 2018 1:36 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

OK I tried that and even tries saving it as main.py on the cam then powering from external power source and still same effect. Here is a video of just taking 1 shot then display insteading of video stream so it is easier to see what's happening https://youtu.be/LDdQg6TyJfE Seems with QVGA it can onl...
by OutoftheBOTS
Thu Jun 07, 2018 11:32 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

I have started today to play with a larger 2.4" screen with resolution 320 x 240 and have some small problems with QVGA compared to QQVGA. I can make a 160 x 120 window and display QQVGA on the bigger screen but if I try to use QVGA and display the whole screen it seems to only stream a small part o...
by OutoftheBOTS
Thu Jun 07, 2018 9:46 pm
Forum: Project Discussion
Topic: pyb vs machine
Replies: 2
Views: 298

Re: pyb vs machine

Ok I was juts following your examples and they all use the pyb module and I didn't realize that the machine module was available so I changed my ESP32 screen script to pyb but now I have just tried my original script with machine and it works fine. :)
by OutoftheBOTS
Thu Jun 07, 2018 7:10 pm
Forum: Project Discussion
Topic: pyb vs machine
Replies: 2
Views: 298

pyb vs machine

This is just some food for though about future direction. pyb module in MicoPython has been replaced by the machine module. Only a few years ago there was only 1 board that ran Micro-Python and it was called the pyboard that ran on a STM32 chip. The pyb module was methods for controlling hardware on...
by OutoftheBOTS
Thu Jun 07, 2018 6:31 pm
Forum: General Topics
Topic: My code for LCD dispaly
Replies: 9
Views: 347

Re: My code for LCD dispaly

Also I might look at shifting my DC pin from 'P8' to 'P9' so that it doesn't use the I2C pin so that the LCD and I2C can be used at the same time. If I hard wire the RST and BL to 3.3v and have a manual human operated switch to turn the screen and Black light on/off then I will only use MOSI, MISO, ...
by OutoftheBOTS
Thu Jun 07, 2018 6:23 pm
Forum: General Topics
Topic: My code for LCD dispaly
Replies: 9
Views: 347

Re: My code for LCD dispaly

At no point does SPI actually drive the CS pin. If this is the case then I am surprised that my LCD driver worked as I didn't do anything with the CS pin in software at all so it would have been floating. I was under the assumption that the pyb.SPI.send method took care of this. Ok I will add drivi...
by OutoftheBOTS
Thu Jun 07, 2018 5:57 pm
Forum: General Topics
Topic: My code for LCD dispaly
Replies: 9
Views: 347

Re: My code for LCD dispaly

The SPI thing doesn't drive the CS pin at all. This is true for the underlying C library but the pyb.SPI adds this in for the user see my program above for running the screen and nowhere is there any mention of the CS pin as it is auto by the pyb.SPI see my 2 lines of code to send SPI data. spi = S...
by OutoftheBOTS
Thu Jun 07, 2018 5:10 pm
Forum: General Topics
Topic: My code for LCD dispaly
Replies: 9
Views: 347

Re: My code for LCD dispaly

What's the correct syntax for declaring different CS pin?? This is the code that I used for the screen driver spi = SPI(2, SPI.MASTER, 54000000) but be able to add something like this to create a second instances of the SPI driver but with different CS pins spi_touch = SPI(2, SPI.MASTER, 54000000, c...
by OutoftheBOTS
Thu Jun 07, 2018 4:52 pm
Forum: General Topics
Topic: My code for LCD dispaly
Replies: 9
Views: 347

Re: My code for LCD dispaly

I have ordered some smd 8 pin headers and a smd on/off switch and am going to build a much better little screen to plug into the back of the OpenMV cam. I may also play with adding touch to the screen. The touch is driven by a XPT2045 chip that I will mount on the back of the screen PCB. The XPT2045...
by OutoftheBOTS
Thu Jun 07, 2018 4:41 pm
Forum: General Topics
Topic: Changing directory path
Replies: 10
Views: 488

Re: Changing directory path

UART isn't a directory rather a communication peripheral.

Rather trying to save to the UART you will need to send the image data over UART to the RPi then the RPi will need a program running that reads this data from UART then saves it to it's storage.
by OutoftheBOTS
Thu Jun 07, 2018 5:08 am
Forum: General Topics
Topic: My code for LCD dispaly
Replies: 9
Views: 347

My code for LCD dispaly

I have had a little play with a 1.77" 160x128 TFT display. I made the PCB to be similar to the official OpenMV LCD shield but except to be in landscape instead of portrait. For the moment the code is very light and just streams your frame buffer to the screen, there plenty of room to add features. I...
by OutoftheBOTS
Thu Jun 07, 2018 12:42 am
Forum: General Topics
Topic: understanding find_rects
Replies: 3
Views: 203

Re: understanding find_rects

Have you thought of using find_blobs()??? You can determine if a blob underneath is a rect based on how high the density() of a blob is along with if w()/h() are close to 1. Some food for though and I will have a play with it. I think running 6 find blobs to detect all the colours then extract from...
by OutoftheBOTS
Wed Jun 06, 2018 9:14 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

I am going to make a up a little PCB to mount my screen on so that it will plug into the OpenMV cam. I want to wire my screen the same as the official LCD so that it will not only work with the drivers that I write but also with the builtin OpenMV LCD module. pins used by LCD : MOSI: P0 MISO: P1 SCK...
by OutoftheBOTS
Wed Jun 06, 2018 5:14 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

Thanks I am going to have a play with hooking a couple of different screens and getting them to work with Open MV.

What is the max SPI2 speed OpenMV cam??
by OutoftheBOTS
Wed Jun 06, 2018 5:12 am
Forum: General Topics
Topic: understanding find_rects
Replies: 3
Views: 203

understanding find_rects

I am having a little trouble getting find_rects to find my squares. Does find)rects find all rects including children rects insode larger rects or once it finds a large rect then it stops looking for children rects inside the larger 1. Also what does the threshold arg for find_rects do?? Here's a vi...
by OutoftheBOTS
Wed Jun 06, 2018 4:28 am
Forum: Project Discussion
Topic: video overlay
Replies: 2
Views: 180

Re: video overlay

If you look in the examples there is a text_drawing_1.py that demonstrates this :)
by OutoftheBOTS
Wed Jun 06, 2018 1:27 am
Forum: General Topics
Topic: bug in b_or
Replies: 12
Views: 388

Re: bug in b_or

Thanks. I just installed new firmware and it worked perfectly :)
by OutoftheBOTS
Wed Jun 06, 2018 1:21 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

Re: LCD type

No worries I am happy to help. I have been playing with the little TFT's a bit and have worked out how to use them well. My history is that I only started to learn to program 18 months ago and have only used Basic and Python so far but it is about time that I learnt C. I will stare at your github an...
by OutoftheBOTS
Wed Jun 06, 2018 12:41 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 645

LCD type

I have heaps of little TFT screen already and would like to have a go at hooking 1 of my screens up to the OpenMV cam that will be compatible with the builtin LCD module I have a st7735 with res of 160 x 128 that runs 16 bit colour so would be perfect for RGB565 in QQVGA. Will it be compatible with ...
by OutoftheBOTS
Wed Jun 06, 2018 12:26 am
Forum: General Topics
Topic: bug in b_or
Replies: 12
Views: 388

Re: bug in b_or

Question, you do know binary can take multiple colors to threshold at the same time right?
No I didn't but I do now. What's the syntax to do this??

Go to advanced search