Search found 1168 matches

by stevestrong
Wed Jun 28, 2017 12:07 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 97
Views: 6643

Re: OV7670, Generic STM32F103RC and ILI9341 display

@indrekluuk, can you please tell us which SPI driver are you using? Is it from the official Arduino_STM32 repository? https://github.com/rogerclarkmelbourne/Arduino_STM32/tree/master/STM32F1/libraries/SPI/src https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/8423fb9807beebd6888bc9cf77416b10b...
by stevestrong
Wed Jun 28, 2017 11:52 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 97
Views: 6643

Re: OV7670, Generic STM32F103RC and ILI9341 display

Roger, be careful, it looks like the in the users manual mentioned MSB / LSB swap is actually a bit reversing (D0 -> D7, D1->D6, ...), not a byte order swap!
OV7670 data swap.jpg
OV7670 data swap.jpg (46.34 KiB) Viewed 4 times
by stevestrong
Wed Jun 28, 2017 8:45 am
Forum: Libraries & Hardware
Topic: Use STM32F103C8 with TFT 320QVT 9341
Replies: 8
Views: 66

Re: Use STM32F103C8 with TFT 320QVT 9341

It seems that your LCD controller is not an ILI9341, but SSD1289. This controller type is not supported by my library, but can be added. For initialization sequences please have a look at: https://github.com/prenticedavid/MCUFRIEND_kbv. The touch controller is an SPI driven one, you have to detect w...
by stevestrong
Tue Jun 27, 2017 7:02 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 97
Views: 6643

Re: OV7670, Generic STM32F103RC and ILI9341 display

I checked your code and it seems that it only uses byte-by-byte writing, and not buffered multi-byte writing. Please tell me if I'm wrong. In this case you could use: SPI.write(uint8 data); Of course, single byte writing will be never as effective as multi-byte writing. In order to speed up the writ...
by stevestrong
Tue Jun 27, 2017 3:13 pm
Forum: General discussion
Topic: distance sensor VL6180
Replies: 8
Views: 79

Re: distance sensor VL6180

acronis wrote:
Tue Jun 27, 2017 2:36 pm
I'm doing a direct connection of pins SCL and SDA ?
Yes.
BreakoutAnnotated[1].png
BreakoutAnnotated[1].png (189.96 KiB) Viewed 32 times
acronis wrote:
Tue Jun 27, 2017 2:36 pm
but what about the maximum voltage 2,8 V ?
You have to provide yourself, as @zoomx mentioned above (using LM317)
by stevestrong
Tue Jun 27, 2017 2:24 pm
Forum: General discussion
Topic: distance sensor VL6180
Replies: 8
Views: 79

Re: distance sensor VL6180

Which STM32 board do you use?
In general, on STM32 boards there are no resistors mounted on non-reserved IO pins.
by stevestrong
Tue Jun 27, 2017 1:48 pm
Forum: General discussion
Topic: convert PORT to int
Replies: 10
Views: 98

Re: convert PORT to int

dannyf wrote:
Tue Jun 27, 2017 1:12 pm
It isn't a good practice to code them via a variable. I use macros instead.
Unfortunately, most original Arduino sketches use the "int" (variable) version.
Me, I also favor macros instead, so that when I port a sketch for STM32 the first thing I do is to replace the "int" by macro.
by stevestrong
Tue Jun 27, 2017 12:30 pm
Forum: General discussion
Topic: convert PORT to int
Replies: 10
Views: 98

Re: convert PORT to int

Different port pins are part of an enum, like this:
https://github.com/rogerclarkmelbourne/ ... oard.h#L76
Well, actually they should be identical, but I don't know the logic behind why the pins are not taken in the same order for each variant...
by stevestrong
Tue Jun 27, 2017 12:11 pm
Forum: Libraries & Hardware
Topic: Use STM32F103C8 with TFT 320QVT 9341
Replies: 8
Views: 66

Re: Use STM32F103C8 with TFT 320QVT 9341

The "TFT_.._MASK" is the bit number of the IO port.
So if you define

Code: Select all

#define TFT_RD PB4 // port B bit 4
then you should have

Code: Select all

#define TFT_RD_MASK BIT4 // bit 4
Can you post a link where did you buy the display?