Search found 12 matches

by tutankhamen
Fri Dec 08, 2017 5:23 pm
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

HC-05 module is feeding from STM32F103's +5V and RX/TX are connected to the 5V tollerant PA9/PA10 pins. This is what you meant? Sorry, I'm not a HW guy, The vanilla HC-05 module is 3.3V Vcc, unless it is a module with a 5V->3.3V voltage regulator (HC-05 mounted on a breakout board). I feed it with ...
by tutankhamen
Thu Dec 07, 2017 7:19 pm
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

Thank you! I think you're right and I'd better to find better implementation of WS2812b, so, I'm going to dig into it.
by tutankhamen
Thu Dec 07, 2017 8:39 am
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

I need to update 600 x WS2812b LEDs 60 times per second :)
by tutankhamen
Thu Dec 07, 2017 5:49 am
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

I found the origin of the problem. I'm using FastLED library which disables interrupts: https://github.com/FastLED/FastLED/issues/488 This is very reasonable for driving LEDs, but it ruins everything else :( So, now I can drive LEDs smoothly, but I can't receive via UART interface (and not only UART...
by tutankhamen
Wed Dec 06, 2017 6:25 pm
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

What's going on in the rest of your code? One possibility that comes to mind is that interrupts are being disabled (or a long (relative to the serial character rate) period of time spent in an interrupt service routine) in some other section of the code for a long enough period to cause Serial to m...
by tutankhamen
Wed Dec 06, 2017 6:17 pm
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

You can always use your PC if equipped with BT (for testing.) Also, serial device to device transfer can confound anyone. Years ago, I built a QBF Arduino unit to both send and receive 4800/9600 serial streams. Maybe I should update the design to use BT. https://www.hackster.io/rayburne/the-qbf-sig...
by tutankhamen
Wed Dec 06, 2017 6:01 pm
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

Pito wrote:
Wed Dec 06, 2017 1:01 pm
\PS: Afaik the HC-05 goes into sleep when not active for 5 secs.. You have to send a char to the module in order to wake the HC-05 up.
Thank you for the tip - I didn't know that. But I don't think it relates to the issue, but I will definitely modify my code to avoid it.
by tutankhamen
Wed Dec 06, 2017 5:55 pm
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Hello from SF
Replies: 3
Views: 76

Re: Hello from SF

Thank you guys! I'm not that young and my first programming experience was for ZX Specrum, i.e. Z80 with 16KB of ram (later I upgraded to 48kb), so 16KB was enough even for games :) My first project with stm32 is a cylindrical lamp/screen, based on ws2812b leds. This device could functioning indepen...
by tutankhamen
Wed Dec 06, 2017 4:58 pm
Forum: General discussion
Topic: Trying to make STM32F103 and HC-05 work together
Replies: 18
Views: 367

Re: Trying to make STM32F103 and HC-05 work together

So many answers! Thank you guys! Voltage levels ?? HC-05 module is feeding from STM32F103's +5V and RX/TX are connected to the 5V tollerant PA9/PA10 pins. This is what you meant? Sorry, I'm not a HW guy, i.e. these are my first steps :) Beside what Roger pointed out (voltage levels), how do you inte...
by tutankhamen
Wed Dec 06, 2017 5:59 am
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Hello from SF
Replies: 3
Views: 76

Hello from SF

Hello guys, My name is Robert Tarasov, I'm a software engineer in Google, working in ChromeOS graphics team (developing graphics subsystem in ChromeOS Kernel). I used to be a game developer, mostly work on backend or rendering pipeline optimization. Programming for microcontrollers - is my new hobby...