Search found 91 matches

by ScottM
Thu Apr 23, 2020 7:39 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1633

Re: Panning camera and trying to get images

Got an error: AttributeError: 'module' object has no attribute 'compress_for_idle'

I'm using IDE 2.4.0 and camera firmware version 3.6.1
by ScottM
Thu Apr 23, 2020 4:16 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1633

Re: Panning camera and trying to get images

Didn't really help. while(True): print("\n1. Home Position") Pan.angle(0) time.sleep(1000) print("Taking Snapshot") img = sensor.snapshot() img = sensor.snapshot() sensor.flush() time.sleep(5000) print("Image 1 should show on PC by now") print("2. Pan angle -20") Pan.angle(-20) time.sleep(1000) prin...
by ScottM
Thu Apr 23, 2020 2:59 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1633

Re: Panning camera and trying to get images

I changed the code to this; #first make sure we atart at home position Pan.angle(0) Tilt.angle(4) time.sleep(5000) #now look through simple motion to get images at different angles while(True): print("\n1. Home Position") Pan.angle(0) time.sleep(1000) print("Taking Snapshot") img = sensor.snapshot()...
by ScottM
Thu Apr 23, 2020 11:52 am
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1633

Re: Panning camera and trying to get images

I changed the sample code to this and still don't see consistency in the images transferred to the PC. I'll see the home image and then it will still be there when at the -20 deg position and may even shift a bit, but not show the -20 image. Sometimes the -20 image does show, but not until the camer...
by ScottM
Thu Apr 23, 2020 8:23 am
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1633

Re: Panning camera and trying to get images

Thanks. I will try it.
by ScottM
Wed Apr 22, 2020 10:08 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1633

Panning camera and trying to get images

I have an H7 camera mounted on a pan/tilt servo mount. The servos do not have external feedback signals, so when I send them a command to go to a certain angle, I have no feedback to make sure they got there. For this sample, I'm simply trying to pan the camera and display images on the PC after it ...
by ScottM
Fri Mar 27, 2020 11:15 am
Forum: Technical Discussion
Topic: Smoked it
Replies: 5
Views: 1941

Re: Smoked it

I probably did it by applying 12V through the pan/tilt shield connection block. In any event, when I connect to USB port, the green light flashes rapidly for a couple of seconds, then turns white and turns off. It does not renumerate. The computer does not see it.
by ScottM
Thu Mar 26, 2020 3:41 pm
Forum: Technical Discussion
Topic: Smoked it
Replies: 5
Views: 1941

Re: Smoked it

I bought the part and soldered it in. The camera powers up but won't communicate to the USB port, so I guess it's cooked.
by ScottM
Fri Mar 13, 2020 10:56 am
Forum: Technical Discussion
Topic: Smoked it
Replies: 5
Views: 1941

Re: Smoked it

Thanks. They are only 88 cents.
by ScottM
Fri Mar 13, 2020 9:54 am
Forum: Technical Discussion
Topic: Smoked it
Replies: 5
Views: 1941

Smoked it

I mistakenly connected 12V instead of 5V to one of my cameras and smoked what I think is a voltage regulator. Can you tell me what the part number is? I'd like to try to repair it. It is the circled part in the picture. I have the skills to do board level repairs. I'm hoping to save it. blown part.J...
by ScottM
Fri Mar 13, 2020 9:25 am
Forum: Project Discussion
Topic: Solved: OpenMV communications with Arduino
Replies: 6
Views: 8387

Re: Solved: OpenMV communications with Arduino

Hey Chris19,

Did you make any changes to your example code since posting it here last May?

Scott
by ScottM
Wed Mar 11, 2020 11:58 am
Forum: Technical Discussion
Topic: Can pan/tilt be blocking?
Replies: 5
Views: 1646

Re: Can pan/tilt be blocking?

For some reason, I have much better success with utime.sleep_ms() than I had with time.sleep().
by ScottM
Wed Mar 11, 2020 10:15 am
Forum: Technical Discussion
Topic: Pan/Tilt strange behavior
Replies: 4
Views: 1593

Re: Pan/Tilt strange behavior

What do you mean by "If there's nothing to block the cam at the end of the script"? Do you mean physically block the servos from spinning around or add the infinite while loop to prevent the servo from receiving any more instructions? I am using the pan/tilt servos to point the camera where I need i...
by ScottM
Tue Mar 10, 2020 10:55 am
Forum: Technical Discussion
Topic: Can pan/tilt be blocking?
Replies: 5
Views: 1646

Re: Can pan/tilt be blocking?

This code seems to work.

print("1. Pan angle 0")

Pan.angle(0)
utime.sleep_ms(5000)

print("2. Pan angle -10")
Pan.angle(-10)
utime.sleep_ms(5000)

print("3. Pan angle 10")
Pan.angle(10,2000)
utime.sleep_ms(5000)

print ("Done")
by ScottM
Mon Mar 09, 2020 5:00 pm
Forum: Technical Discussion
Topic: Pan/Tilt strange behavior
Replies: 4
Views: 1593

Re: Pan/Tilt strange behavior

Thanks. I'll try it.
by ScottM
Mon Mar 09, 2020 4:58 pm
Forum: Technical Discussion
Topic: Can pan/tilt be blocking?
Replies: 5
Views: 1646

Re: Can pan/tilt be blocking?

That does not work.
by ScottM
Mon Mar 09, 2020 2:16 pm
Forum: Technical Discussion
Topic: Pan/Tilt strange behavior
Replies: 4
Views: 1593

Pan/Tilt strange behavior

I have a simple script that tests my pan motor. At zero degrees, it is pointing right where I want it. Sometimes, when the program ends, the thing will rotate -79 degrees, twisting my cables around the mounting post, all for no reason. The camera still has power, which means the pan/tilt motors have...
by ScottM
Mon Mar 09, 2020 2:11 pm
Forum: Technical Discussion
Topic: Can pan/tilt be blocking?
Replies: 5
Views: 1646

Can pan/tilt be blocking?

I am testing my pan/tilt shield and have a couple of issues. In the code segment below, I tell it to pan - 5 degrees in 2 seconds and then I read the position. Pan.angle(-5,2000) current_pan = Pan.angle() print ("Current pan angle is %s" % current_pan) What happens is that the code does not wait for...
by ScottM
Thu Mar 05, 2020 2:13 pm
Forum: General Topics
Topic: New H7 Plus and AprilTags
Replies: 4
Views: 1938

Re: New H7 Plus and AprilTags

Excellent. This is what I have been waiting for. I will put in a request to buy a couple.
by ScottM
Thu Mar 05, 2020 12:07 pm
Forum: General Topics
Topic: New H7 Plus and AprilTags
Replies: 4
Views: 1938

Re: New H7 Plus and AprilTags

So do you mean that I plug in a 32MB Micro SD card? What would then be the suggested maximum window size (resolution) and frame rate for reading April Tags?
by ScottM
Thu Mar 05, 2020 11:21 am
Forum: General Topics
Topic: New H7 Plus and AprilTags
Replies: 4
Views: 1938

New H7 Plus and AprilTags

Does the new H7 Plus camera address the issue with having to window down to 200x200 to read AprilTags due to limited memory? I see the Plus has the same spec of 1 MB RAM and 2 MB Flash.
by ScottM
Mon Dec 16, 2019 9:03 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 12689

Re: Support for I2C LCD 4x20 displays

I use these LCD displays. They are pretty cheap and available from many websites. https://www.ebay.ca/itm/IIC-I2C-TWI-200 ... 2364303996
by ScottM
Mon Dec 16, 2019 8:59 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 1000

Re: Communication with Arduino Mega - Serial or I2C?

Yes, I found that post after I made my request. So you see from my code that I am using the Arduino Mega to handle the I2C LCD display. I tried months ago to figure out how to get the OpenMV to display on it but couldn't figure it out. If someone has OpenMV working with a common I2C LCD display, I'd...
by ScottM
Mon Dec 16, 2019 2:16 pm
Forum: Project Discussion
Topic: Solved: OpenMV communications with Arduino
Replies: 6
Views: 8387

Re: Solved: OpenMV communications with Arduino

How to you define "output" in the Arduino sketch?
by ScottM
Mon Dec 16, 2019 1:48 pm
Forum: Project Discussion
Topic: Solved: OpenMV communications with Arduino
Replies: 6
Views: 8387

Re: Solved: OpenMV communications with Arduino

Just found this. I will build my Arduino Mega to two OpenMV cameras using some of this code. Thanks.
by ScottM
Mon Dec 16, 2019 1:37 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 1000

Re: Communication with Arduino Mega - Serial or I2C?

How to I code the OpenMV to read serial data from the Arduino? I want to be able to send commands or data from Arduino to OpenMV, such as for a quick check to see if it's available.
by ScottM
Mon Dec 16, 2019 1:35 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 1000

Re: Communication with Arduino Mega - Serial or I2C?

As promised, here is my code for the OpenMV. # P4 UART3 tx goes to Mega RX1 on pin 19 # P5 UART3 rx goes to Mega TX1 on pin 18 import time from pyb import UART uart = UART(3, 9600, timeout_char=1000) print("Starting test") for x in range(0, 6): print (x) uart.write("Cycle # %d \n" % x) #send text to...
by ScottM
Mon Dec 16, 2019 7:42 am
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 1000

Re: Communication with Arduino Mega - Serial or I2C?

I have serial comm working, but it stops randomly, so I'm leaning towards I2C. I can post my code for Arduino and OpenMV with regards to the serial comm portion.
by ScottM
Fri Dec 13, 2019 3:43 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 1000

Communication with Arduino Mega - Serial or I2C?

I'm building a robot that will use an Arduino Mega as the controller and there will be two OpenMV H7 cameras that I need to communicate bidirectionally with. What is the best protocol to use, I2C or Serial? I have searched this forum and found lots of old posts and my own experiments using serial ar...
by ScottM
Thu Nov 14, 2019 11:01 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 12689

Re: Support for I2C LCD 4x20 displays

This is an old issue and I am now building my robot, so I want to check to see if OpenMV supports a 2 line or 4 line I2C LCD display. I have a solution whereby the OpenMV camera sends serial data to an Arduino and the Arduino takes care of the display, but a more elegant option would be to connect t...
by ScottM
Fri Nov 01, 2019 3:56 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 18
Views: 12962

Re: Frame Rate April Tags

I look forward to trying it, but for this robot it looks like I have to go with what I have. I have another camera question, but I will ask it in a new post for the benefit of all.
by ScottM
Fri Nov 01, 2019 10:05 am
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 10504

Re: Minimal detect AprilTag (don't need tag ID) with better range?

This is great news. Just yesterday, I cut a 80 x 80 mm hole in my Superdroids robot base and designed and printed a mount for the OpenMV camera. The camera lens is 42 mm above the base and approximately 125 mm off the floor. It looks through the hole to April tags on the floor. You can see what it l...
by ScottM
Thu Oct 31, 2019 9:37 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 18
Views: 12962

Re: Frame Rate April Tags

Any update on new cameras with more memory?
by ScottM
Wed Oct 30, 2019 1:02 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 10504

Re: Minimal detect AprilTag (don't need tag ID) with better range?

It has been awhile since I posted, so I would like an update. I am building my robot and I need to know if I can get a camera to detect an April tag with a bigger window than is currently allowed. Do your 2MP and 5MP cameras have more memory for processing April tags?
by ScottM
Mon Sep 23, 2019 5:00 pm
Forum: Technical Discussion
Topic: More defective LCDs
Replies: 2
Views: 781

Re: More defective LCDs

I'm pretty sure that they worked when I first received them.
by ScottM
Fri Sep 20, 2019 3:11 pm
Forum: Technical Discussion
Topic: More defective LCDs
Replies: 2
Views: 781

More defective LCDs

I have two LCD shields and both have problems with color. Red shows as blue. From similar posts, you want the QRCodes to send to your CM, so I attached them.
20190920_145727.jpg
20190920_145744.jpg
20190920_145120.jpg
by ScottM
Fri Sep 06, 2019 3:07 pm
Forum: Technical Discussion
Topic: Creating custom AprilTags
Replies: 3
Views: 746

Re: Creating custom AprilTags

I'll use TAG36H10 and encode 4 digits.
by ScottM
Fri Sep 06, 2019 3:00 pm
Forum: Technical Discussion
Topic: Creating custom AprilTags
Replies: 3
Views: 746

Re: Creating custom AprilTags

How many digits can I encode in one Apriltag? If I have to, I can live without the "CX" and just put in "1021".
by ScottM
Fri Sep 06, 2019 10:55 am
Forum: Technical Discussion
Topic: Creating custom AprilTags
Replies: 3
Views: 746

Creating custom AprilTags

Does anyone know of a website or program I can use to generate my own custom AprilTags? I want to encode strings like "CX1021".
by ScottM
Tue Sep 03, 2019 2:55 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 10504

Re: Minimal detect AprilTag (don't need tag ID) with better range?

I'm not a systems designer, but shouldn't SDRAM be able to run at the processor speed, which is 480MHz? It sounds like you are saying it runs at 20MHz.
by ScottM
Tue Sep 03, 2019 10:26 am
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 10504

Re: Minimal detect AprilTag (don't need tag ID) with better range?

I want my robot to navigate across a room between two spots. I'm thinking of mounting a camera at ceiling height (9') and having it identify two locations on the floor, plus the robot itself. I haven't tested it yet, so I'm not sure if using April tags or color spots will be the best option. I'm pre...
by ScottM
Sat Aug 17, 2019 9:45 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 10504

Re: Minimal detect AprilTag (don't need tag ID) with better range?

Sounds exciting to go from VGA to 2MP and 5MP cameras. How long before you can field test them?
by ScottM
Sat Aug 17, 2019 9:04 am
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 35
Views: 10302

Re: Motor and LCD Shield conflicting

There is a workaround if you don't mind adding more hardware. Connect the LCD shield to the camera and use a couple of the unused pins from the camera to send commands to an Arduino Nano or UNO and have it drive the motor(s). For example, P4 and P5 are free and they are serial (UART) pins, so you ca...
by ScottM
Fri Aug 16, 2019 7:59 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 10504

Re: Minimal detect AprilTag (don't need tag ID) with better range?

"We will have a DRAM camera coming out soon which will have no limits on this." I'm really struggling trying to design my robot to detect April Tags on the floor and to navigate from one to another. The problem is the limited field of view because of the 64K memory limit. I want to place the tags no...
by ScottM
Mon Jul 22, 2019 5:05 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 12689

Re: Support for I2C LCD 4x20 displays

I agree. All I would be doing is sending strings one way to the display.
by ScottM
Mon Jul 22, 2019 3:57 pm
Forum: Technical Discussion
Topic: Saving scripts with .py extension
Replies: 1
Views: 1688

Saving scripts with .py extension

This is just a small issue, but when you save a script, the IDE should append .py on it automatically. If you enter just the script name, it saves it without an extension and in the IDE, it all turns grey.
by ScottM
Mon Jul 22, 2019 2:38 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 12689

Re: Support for I2C LCD 4x20 displays

I suppose I could, but I have a bunch of i2c LCDs laying around, so it seemed like a reasonable idea to use them. I know that it seems excessive, but I have plenty of Arduinos too. I could send my strings to the Arduino and let it handle the display. That would offload some of the work I need the Op...
by ScottM
Mon Jul 22, 2019 2:08 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 12689

Re: Support for I2C LCD 4x20 displays

Thanks for responding. I was trying to change the calls this morning, but I ran into some other problems. In his pyb_i2c_lcd_test program, I changed from pyb import I2C to from machine import I2C, Pin and i2c = I2C(2, I2C.MASTER) to i2c = I2C(sda=Pin('P5'), scl=Pin('P4')) but in the called module py...
by ScottM
Mon Jul 22, 2019 10:46 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 12689

Re: Support for I2C LCD 4x20 displays

This works; # I2C Scanner Basic - By: Scott Murchison - Fri Jul 19 2019 # simple program to scan I2C bus for connected devices from machine import I2C, Pin i2c = I2C(sda=Pin('P5'), scl=Pin('P4')) print('Scanning i2c bus...') devices = i2c.scan() if len(devices) == 0: print("No i2c devices found !") ...
by ScottM
Mon Jul 22, 2019 8:30 am
Forum: Technical Discussion
Topic: help please
Replies: 7
Views: 13102

Re: help please

I'd like to see a Bluetooth shield as well. I don't need it to send pictures, but to signal other parts of my robot that the camera sees something.

Go to advanced search