Search found 130 matches

by kwiley
Sat Jan 19, 2019 2:40 am
Forum: General Topics
Topic: Retrieve crop/ROI subimage of Image
Replies: 3
Views: 2979

Re: Retrieve crop/ROI subimage of Image

Thank. I'm sure I'll get to the point where I push my routines down to lower levels, but at the tinkering stage, that would be a premature optimization. I don't yet know which methods I'll need. Right now, my bottleneck appears to be secondary SPI devices, so nothing much of the Python running on th...
by kwiley
Fri Jan 18, 2019 7:49 pm
Forum: Technical Discussion
Topic: GPIO on P6
Replies: 6
Views: 1905

Re: GPIO on P6

It could also be this Chinese knock off board I'm working with. I already pointed out that the darn LED is soldered on wrong. :D
by kwiley
Fri Jan 18, 2019 4:12 pm
Forum: General Topics
Topic: Retrieve crop/ROI subimage of Image
Replies: 3
Views: 2979

Re: Retrieve crop/ROI subimage of Image

I see get_pixel(), but is there a fast way to grab runs of adjacent pixels?
by kwiley
Fri Jan 18, 2019 4:09 pm
Forum: General Topics
Topic: Retrieve crop/ROI subimage of Image
Replies: 3
Views: 2979

Retrieve crop/ROI subimage of Image

There isn't a routine for retrieving a cropped portion (ROI) of an Image into a new Image, or an obvious way to pull a byte array out of an Image. I don't want to use sensor windowing. I want to display the larger image retrieved from the camera and only process a subportion in other ways. Ultimatel...
by kwiley
Fri Jan 18, 2019 3:43 pm
Forum: Technical Discussion
Topic: M7 5V out?
Replies: 17
Views: 4562

Re: M7 5V out?

As I've said before, I'm not specifically urging any design changes, much less extra work, unless the broader community sees utility in such requests.

Thanks.
by kwiley
Fri Jan 18, 2019 2:35 pm
Forum: Technical Discussion
Topic: GPIO on P6
Replies: 6
Views: 1905

GPIO on P6

P6 is the DAC/ADC line, in addition to a timer. But doesn't it have to be configured for DAC/ADC first? If I just assign it as a GPIO, shouldn't it act like a GPIO? I ask because that's not what I observe. If I set it to a pull-down, it remains up, but if I set it to a pull-up, I can pull it down wi...
by kwiley
Fri Jan 18, 2019 2:31 pm
Forum: Technical Discussion
Topic: The 5 VIAs just above the USB port
Replies: 7
Views: 1921

Re: The 5 VIAs just above the USB port

Sorry, I didn't quite understand. You said the "VIN" input takes voltage from another source. Was that in reference to the 3.3v VIA I asked about or were you describing the VIN pin below P7? I was asking about the VIAs on the board. Or were you saying the VIN pin below P7 and the 3.3v VIA are direct...
by kwiley
Fri Jan 18, 2019 2:27 pm
Forum: Technical Discussion
Topic: M7 5V out?
Replies: 17
Views: 4562

Re: M7 5V out?

Hmmm, are you saying that there is some sort of "violation" involved in the fact that an Adafruit FT232H has a 5V supply line?
by kwiley
Fri Jan 18, 2019 1:42 pm
Forum: Technical Discussion
Topic: The 5 VIAs just above the USB port
Replies: 7
Views: 1921

The 5 VIAs just above the USB port

The M7 (and the H7 apparently) has 5 VIAs above the USB port labeled GND, 3.3v, RST, SWD, and SWC. How are they used? Presumably GND is just an obvious ground connection. Is the 3.3v via an output "rail" to power other devices, or is it a VIN of some sort (and if so, is it really 3.3, unlike the VIN...
by kwiley
Fri Jan 18, 2019 1:33 pm
Forum: Technical Discussion
Topic: M7 5V out?
Replies: 17
Views: 4562

M7 5V out?

If I want to power a second device from the OpenMV, can I only power 3.3V devices, say from the 3.3V rail below P6? Can I not pass the USB connection's 5V on to another device?
by kwiley
Thu Jan 17, 2019 7:13 pm
Forum: Technical Discussion
Topic: 2 SPI devices at different speeds
Replies: 5
Views: 1492

Re: 2 SPI devices at different speeds

Oooookay. I see. Instead of calling lcd.init() every time, I directly reset the bus speed. That actually seems to work: pyb.SPI(2).init(pyb.SPI.MASTER, baudrate=15000000, polarity=0, phase=0) lcd.display(img) pyb.SPI(2).init(pyb.SPI.MASTER, baudrate=2000000, polarity=0, phase=0) That leaves one ques...
by kwiley
Thu Jan 17, 2019 7:07 pm
Forum: Technical Discussion
Topic: 2 SPI devices at different speeds
Replies: 5
Views: 1492

Re: 2 SPI devices at different speeds

BTW, the rotated text wasn't an explicit coding or effort request, although I appreciate your diligence. I was asking what was supported at the time, but not trying to make extra work for you.

Thanks.
by kwiley
Thu Jan 17, 2019 7:03 pm
Forum: Technical Discussion
Topic: 2 SPI devices at different speeds
Replies: 5
Views: 1492

Re: 2 SPI devices at different speeds

I actually thought of that before writing my post, but the resulting framerate dropped from 5 to 2! It got considerably worse. In fact, even if I just call lcd.init() right before I call lcd.display() the framerate drops to 2, even if I don't bother setting the bus to the slower speed in between fra...
by kwiley
Thu Jan 17, 2019 6:10 pm
Forum: Technical Discussion
Topic: 2 SPI devices at different speeds
Replies: 5
Views: 1492

2 SPI devices at different speeds

I am successfully driving two devices off the M7's SPI interface, the LCD shield and a third party device controlled from Pin 9. However, the other device operates at a maximum speed of 2MHz. Configuring the bus for 2MHz reduces the main-loop framerate to 5 fps as the LCD takes much longer to update...
by kwiley
Thu Jan 17, 2019 2:54 pm
Forum: General Topics
Topic: LED Selection not working as doccumented
Replies: 18
Views: 9837

Re: LED Selection not working as doccumented

I also have a clone board. You don't ship to Russia, so I got my M7 from ali and bought a registration key for it. :| To fix the led I swapped LED pins on the board: unmount LED unbend pins 3 & 4 mount LED to board using pins 1 & 2 pin 3 goes to Resistor pin 4 goes to 3.3V use smth to fix LED on bo...
by kwiley
Thu Jan 17, 2019 3:33 am
Forum: General Topics
Topic: User control/input/switches/etc.
Replies: 3
Views: 2690

Re: User control/input/switches/etc.

Cool. There's so much stuff out there and I'm not much of an electronics tinkerer, so I'm generally unaware of all these options.

Thanks.
by kwiley
Wed Jan 16, 2019 5:00 pm
Forum: General Topics
Topic: User control/input/switches/etc.
Replies: 3
Views: 2690

User control/input/switches/etc.

I'm not sure if this belongs in the technical forum, but at any rate, what is the best way to get a little bit of user control over the board? I would like to be able to influence the board's behavior a bit. The simplest example would be a "camera shutter button" that captures a photo at the current...
by kwiley
Sat Jan 12, 2019 8:04 pm
Forum: Technical Discussion
Topic: image drawstring() landscape orientation (or image rotation function)?
Replies: 3
Views: 2681

Re: image drawstring() landscape orientation (or image rotation function)?

Thanks. It isn't a crucial feature. It's just nice to support more a traditional landscape orientation is all. I'll give it a shot.
by kwiley
Fri Jan 11, 2019 2:40 pm
Forum: Technical Discussion
Topic: Are the ML examples written for the H7 (heap errors on M7)
Replies: 1
Views: 2064

Are the ML examples written for the H7 (heap errors on M7)

I can run the CIFAR10_fast example, which uses a smaller network file, but I can't run the other CIFAR example or the Levet example or the Smile example. They produce heap errors immediately. They also seem to depend on an SD card in that the on-board flash isn't big enough to transfer the network d...
by kwiley
Fri Jan 11, 2019 12:56 pm
Forum: Technical Discussion
Topic: image drawstring() landscape orientation (or image rotation function)?
Replies: 3
Views: 2681

image drawstring() landscape orientation (or image rotation function)?

Is there a straightforward way to write text onto the image in landscape orientation? I see no parameters to Image.draw_string() that would do this out of the box. Alternatively, is there correspondingly simple way to rotate an image (one could rotate, write text, then rotate back in order to mainta...
by kwiley
Fri Jan 11, 2019 3:33 am
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 4348

Re: Second SPI device while using LCD shield?

Assuming the LCD shield correctly ignores SPI commands when its hardwired CS pin 3 is high, I should be able to move forward on my own. I'll just use pin 9 for the CS to my other device and should be off and running. I'll see how it goes.

Cheers!
by kwiley
Fri Jan 11, 2019 3:02 am
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 4348

Re: Second SPI device while using LCD shield?

Hi, I'm going to be updating the LCD driver this week with better code after the next IDE release. I can make the driver deinit the SPI bus after using it per image write call. You won't see a performance impact but it will make things work such that our SPI bus use looks transparent. Out of curios...
by kwiley
Fri Jan 11, 2019 2:51 am
Forum: General Topics
Topic: LED Selection not working as doccumented
Replies: 18
Views: 9837

Re: LED Selection not working as doccumented

No, I agree. I'm just a perfectionist, and it gave me some concern that other parts of the board might have problems too, but all the example scripts work like a charm so the critical features are all working flawlessly as far as I can tell. Thanks. I regret missing the KS campaign. I was totally un...
by kwiley
Fri Jan 11, 2019 2:36 am
Forum: General Topics
Topic: LED Selection not working as doccumented
Replies: 18
Views: 9837

Re: LED Selection not working as doccumented

The first time I ran the IDE it immediately offered to update the firmware, so I presume it is fully updated now. How do I know which firmware the board currently has? I don't see anything relevant in the "intro" string when I open up a screen terminal to the MicroPython interpreter. It shows the Mi...
by kwiley
Thu Jan 10, 2019 9:25 pm
Forum: General Topics
Topic: LED Selection not working as doccumented
Replies: 18
Views: 9837

Re: LED Selection not working as doccumented

I just received an M7 from Banggood and I'm having exactly the same problem. I think I have precisely the same product as the OP. I can see the IR leds illuminate, and red and green work (although they are tied to the wrong numbers in the code), and blue doesn't work at all. BTW, mine has similar wr...
by kwiley
Sun Dec 23, 2018 2:36 pm
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 4348

Re: Second SPI device while using LCD shield?

Yeah, I get that. No disrespect. I'm coming in pretty new here. I've been tinkering with PyBoard since the spring (late to that party too, I admit), but I'm not even foot in the door with OpenMV. I don't have it in my possession yet. :-)

Keep up the good work.
by kwiley
Sun Dec 23, 2018 12:03 pm
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 4348

Re: Second SPI device while using LCD shield?

Cool. My M7 and LCD are still in the mail. I'm brand new to OpenMV. I had misunderstood the whole thing to be a "camera module" to some otherwise external central controller (a PyBoard), but I'm discovering that that line of reasoning doesn't quite follow. For one thing, the M7 and H7 are actually m...
by kwiley
Sun Dec 23, 2018 1:42 am
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 4348

Re: Second SPI device while using LCD shield?

Thanks for the input. Aside from driving a second SPI device, I would also be amenable to joining an M7 or H7 to a PyBoard and letting the PyBoard talk to further peripherals with its own SPI buses -- but of course I would still have to connect the camera and the PyBoard. That could be done over UAR...
by kwiley
Fri Dec 21, 2018 5:54 pm
Forum: Technical Discussion
Topic: LCD shield P8 "SPI commands"?
Replies: 1
Views: 1727

LCD shield P8 "SPI commands"?

How is the use of P8 different from P0 with the LCD shield? It is documented as "SPI commands". What sort of commands are issued via P8 as opposed to simply being sent as SPI data over P0 (MOSI)?

Thanks.
by kwiley
Fri Dec 21, 2018 5:35 pm
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 4348

Second SPI device while using LCD shield?

I presume the LCD shield is driven from the SPI bus, correct? The docs for the lcd MicroPython module don't specifically describe the comms (the string "SPI" doesn't even appear on that doc page), but it does say it utilizes pins P0, P2, P3, P6, P7, and P8, which looks very much like SPI access. As ...

Go to advanced search