Search found 76 matches

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: 26

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: 26

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: 76

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: 76

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: 76

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: 76

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: 48

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: 48

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: 48

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: 48

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: 126

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: 48

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: 24

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: 119

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: 119

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: 119

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: 119

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: 119

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: 119

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: 119

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: 40

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: 40

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: 56

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: 56

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: 56

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: 56

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: 56

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: 126

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: 56

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: 29

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: 119

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: 119

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: 29

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: 29

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: 68

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: 119

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: 119

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: 68

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??
by OutoftheBOTS
Tue Jun 05, 2018 6:20 pm
Forum: Technical Discussion
Topic: findcountours and minAreaRect
Replies: 5
Views: 30

Re: findcountours and minAreaRect

Thanks I will have a play with it :)
by OutoftheBOTS
Tue Jun 05, 2018 6:11 pm
Forum: General Topics
Topic: bug in b_or
Replies: 12
Views: 68

Re: bug in b_or

Thanks for spending so much of your time helping me with my requests.

Another great thing about binary images is they use so little memory you can afford to have many of them even in a constrained environment like a MCU
by OutoftheBOTS
Tue Jun 05, 2018 6:07 pm
Forum: Technical Discussion
Topic: findcountours and minAreaRect
Replies: 5
Views: 30

Re: findcountours and minAreaRect

Yes find blob will find bounding rectangle of all blobs but I want to find minAreaRect i.e to rotation on the rect as well as it's position

see first 2 mins of this video https://www.youtube.com/watch?v=o2ul4KrLT-s&t=1s
by OutoftheBOTS
Tue Jun 05, 2018 5:59 pm
Forum: Technical Discussion
Topic: findcountours and minAreaRect
Replies: 5
Views: 30

findcountours and minAreaRect

Does OpenMV have similar functions as findContours and minAreaRect as found in OpenCV.

It is for another project that I have not yet started but plan to.

See first 2 mins of this video https://www.youtube.com/watch?v=o2ul4KrLT-s&t=1s
by OutoftheBOTS
Tue Jun 05, 2018 5:25 pm
Forum: General Topics
Topic: bug in b_or
Replies: 12
Views: 68

Re: bug in b_or

For this project I am recreating a Rubik's Cube solving robot that I built with OpenCV. I need to be able to read the colours of the tiles on the Rubik's cube. I do this by thresholding each colour to remove all other data but that colour then I join all binary images together using or to give me 1 ...
by OutoftheBOTS
Tue Jun 05, 2018 4:04 am
Forum: General Topics
Topic: bug in b_or
Replies: 12
Views: 68

bug in b_or

There seems to be a bug in the b_or see my short explanation video https://youtu.be/qMNy7C22hzY
by OutoftheBOTS
Tue Jun 05, 2018 3:08 am
Forum: General Topics
Topic: setting which fb is displayed in IDE
Replies: 14
Views: 134

Re: setting which fb is displayed in IDE

Great that's perfect. I am now cooking with gas, time to tap out some code
by OutoftheBOTS
Tue Jun 05, 2018 12:31 am
Forum: General Topics
Topic: setting which fb is displayed in IDE
Replies: 14
Views: 134

Re: setting which fb is displayed in IDE

Thank you I am now getting much further, it is displaying what I want in the open terminal. What's the best way for writing programs and running them in the Open terminal. What I just did now was wrote my script in note++ then saved it to the USB drive then in the Open terminal repl I type import fi...
by OutoftheBOTS
Mon Jun 04, 2018 10:22 pm
Forum: General Topics
Topic: setting which fb is displayed in IDE
Replies: 14
Views: 134

Re: setting which fb is displayed in IDE

Something is still wrong because I don't see a binary image for 200ms here is my output https://www.youtube.com/watch?v=O5Cj_tFPke8&feature=youtu.be from this simple test script while True: clock.tick() img = sensor.snapshot() new_fb = img.binary([white_threshold], to_bitmap=True, copy=True) print(n...
by OutoftheBOTS
Mon Jun 04, 2018 5:13 pm
Forum: General Topics
Topic: setting which fb is displayed in IDE
Replies: 14
Views: 134

Re: setting which fb is displayed in IDE

If I use compressed method instead of compress_fro_ide it no longer gets an error but I don't seem to be able to display it in the ide. This is my output from following script https://www.youtube.com/watch?v=HbNfI36FkcM&feature=youtu.be time.sleep(200) gives sleep of 0.2 here is the script for the o...
by OutoftheBOTS
Mon Jun 04, 2018 4:48 pm
Forum: General Topics
Topic: setting which fb is displayed in IDE
Replies: 14
Views: 134

Re: setting which fb is displayed in IDE

Just starting to play with displaying a different fb in the IDE. I get error from print statement can't compress in place from this script img = sensor.snapshot() new_fb = img.binary([white_threshold], copy=True, to_bitmap=True) print(new_fb.compress_for_ide(), end="") time.sleep(0.2)
by OutoftheBOTS
Mon Jun 04, 2018 4:39 pm
Forum: General Topics
Topic: find_rects seems to have broken
Replies: 2
Views: 34

Re: find_rects seems to have broken

It was after the firmware update that I noticed it. You can see by the script that I wasn't using any of the updated features.

Go to advanced search