Search found 5892 matches

by RogerClark
Fri Jun 23, 2017 12:43 am
Forum: STM Core
Topic: WS281x driver for STM Core w/NUCLEO-F030R8
Replies: 3
Views: 34

Re: WS281x driver for STM Core w/NUCLEO-F030R8

Sure you can generate any 24 bit value but my example is simplistic on purpose. I probably could have written a routine to take a 32 bit RGB value and generate 24 bytes of bit pulses ... but I didn't. This is more to show how to use the underlying SPI + TIMER + HAL SPI call as a slave without flogg...
by RogerClark
Thu Jun 22, 2017 10:47 pm
Forum: STM Core
Topic: WS281x driver for STM Core w/NUCLEO-F030R8
Replies: 3
Views: 34

Re: WS281x driver for STM Core w/NUCLEO-F030R8

Rick

Does this snippet allow generation of any 24 bit RGB colour?

I can see how the transmission code could transmit any bit sequence, but I cant understand how the code builds the data for a 24 bit value.
It seems only have macros for a limited palette of colours
by RogerClark
Thu Jun 22, 2017 10:38 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 58
Views: 6045

Re: OV7670, Generic STM32F103RC and ILI9341 display

I will try compiling with the -O2 optimisation and see if anything changes.

And if that doesnt fix the colours, I will wait for the 7735 display to arrive, because it will be a lot easier to get it working with the ILI9341, when I know for sure the camera is outputting RGB .
by RogerClark
Thu Jun 22, 2017 10:33 pm
Forum: General discussion
Topic: Speed sensor, need advice, How many pulses Per Rotation?
Replies: 5
Views: 71

Re: Speed sensor, need advice, How many pulses Per Rotation?

If you mean rpm on a road wheel, then I agree than more than one pulse per rpm would be better. The only exoerience I have with road wheel pulse sensing has been on electic push-bikes, where the speed is much lower. These only seem to use one magnet on a spoke to sense speed, and when slowing down, ...
by RogerClark
Thu Jun 22, 2017 11:57 am
Forum: Problems with libraries
Topic: Arduino TFT libraries compatibility
Replies: 8
Views: 100

Re: Arduino TFT libraries compatibility

I missunderstood your post

I thought you meant that all libraries that has a println function (should always implement it the same way)
Not just Adafruit libs that inherit from the same base class
by RogerClark
Thu Jun 22, 2017 11:54 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 58
Views: 6045

Re: OV7670, Generic STM32F103RC and ILI9341 display

It seems to be 565, but read out in big endian format (high byte first). If you store it as an uint16_t, and write it to the display in little endian, then the colors will be of course different. I actually tried building a buffer and byte swapping, but it seemed to make things worse. The ILI9341 a...
by RogerClark
Thu Jun 22, 2017 11:19 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 58
Views: 6045

Re: OV7670, Generic STM32F103RC and ILI9341 display

I thought that was the same format as the ILI9341 display, but perhaps its not

https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf

I think the data format is on page 45


I thought its was 565 like the camera but I'll need to double check
by RogerClark
Thu Jun 22, 2017 7:13 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 58
Views: 6045

Re: OV7670, Generic STM32F103RC and ILI9341 display

The call to init the camera seems to return that it has succeeded, but the colours are messed up I know why I get 4 images on the screen. Thats because the camera is recording at QQVGA and the screen is QVGA I tried changing the code to get the camera to record as QVGA (320x240) but when I try to se...
by RogerClark
Thu Jun 22, 2017 1:23 am
Forum: Off topic
Topic: from stm32 to stm8s
Replies: 9
Views: 367

STM8

I've ordered a couple of STM8 boards from eBay, as there appears to be increasing interest in this. Its also cropped on in this thread http://www.stm32duino.com/viewtopic.php?f=42&t=2131 I don't know if the STM8 would be worth using for most projects, even though its cheaper than the STM32F103, but ...
by RogerClark
Thu Jun 22, 2017 1:18 am
Forum: Problems with libraries
Topic: Arduino TFT libraries compatibility
Replies: 8
Views: 100

Re: Arduino TFT libraries compatibility

So I can expect tft.println("Hello World") to work just like Serial.println("Hello World"); Or tft.drawRect(0, 10, 5, 20, WHITE) to work like any other drawRect() I doubt even if you always used libraries by the same company e.g. Adafruit, whether tft.println() would work the same across all their ...