Search found 313 matches

by stevestrong
Sun Oct 25, 2020 2:42 pm
Forum: General discussion
Topic: yet another issue, really sorry PWM related.
Replies: 6
Views: 518

Re: yet another issue, really sorry PWM related.

I would not implement workarounds unless the problem is understood and you know for sure that there is no other solution.
You should check the PA15 PWM on a bpluepill.
by stevestrong
Sun Oct 25, 2020 2:37 pm
Forum: General discussion
Topic: i2c MPR121, Need help trouble shooting whats wrong...
Replies: 12
Views: 141

Re: i2c MPR121, Need help trouble shooting whats wrong...

A redesign has been implemented a while ago, developped by Donna.
But it was tested and it worked.
In your place I would try to drive an I2C slave module with bluepill to see whether the core works for you at all.
by stevestrong
Sun Oct 25, 2020 11:03 am
Forum: Maple & Maple mini etc
Topic: Maple Mini ArduCam-Mini-2MP
Replies: 1
Views: 43

Re: Maple Mini ArduCam-Mini-2MP

viewtopic.php?f=2&t=301
Which core do you intend to use?
Which pinout do you plan?
Why do you need SPI?
You can use any I2C interface.
by stevestrong
Sun Oct 25, 2020 8:01 am
Forum: General discussion
Topic: HardwareTimer inside a Class
Replies: 6
Views: 135

Re: HardwareTimer inside a Class

I really don't see any point of using the "new" constructor. This will use malloc and then you do not have any overwiev how you memory is increasing / decreasing. Especially, contructing temporary objetcs in the main loop is the most common cause of memory corruption/overflow problems. Usually, you ...
by stevestrong
Sat Oct 24, 2020 10:00 pm
Forum: General discussion
Topic: yet another issue, really sorry PWM related.
Replies: 6
Views: 518

Re: yet another issue, really sorry PWM related.

So you say PB1,4 and 5 works correctly and PA11 and 15 do not?
Strange.
It maybe has to do with the fact that PA11 was remapped if I remember correctly?
Still F103C8 generic + libmaple?
Please always mention your environment to make us easier to follow your issue.
by stevestrong
Sat Oct 24, 2020 9:53 pm
Forum: General discussion
Topic: i2c MPR121, Need help trouble shooting whats wrong...
Replies: 12
Views: 141

Re: i2c MPR121, Need help trouble shooting whats wrong...

There seems to be a problem with I2C scanner, see here: https://github.com/rogerclarkmelbourne/ ... issues/799
But the normal I2C finctions should work, it is only the scanner affected.
Have you tried to communicate with the IC?
Can you record and post here some scope plots?
by stevestrong
Thu Oct 22, 2020 12:42 pm
Forum: STM32F4 based boards
Topic: STM32f407vet6 blackboard malfunctional PWM
Replies: 13
Views: 653

Re: STM32f407vet6 blackboard malfunctional PWM

It is important to set pin mode after timer init.
Then it is recommended to attach interrupt after refresh, otherwise the interrupt will be fired by refresh.
Which timer 2 pin does not work?
Timer 5 was preferred over timer 2, but you can change this by editing the mapping table.
by stevestrong
Thu Oct 22, 2020 12:06 pm
Forum: STM32F4 based boards
Topic: STM32f407vet6 blackboard malfunctional PWM
Replies: 13
Views: 653

Re: STM32f407vet6 blackboard malfunctional PWM

Timerx.setPeriod() is necessary if you want to output PWM signal with a specific period, not identical with your case (maximum resolution 65535).
by stevestrong
Thu Oct 22, 2020 9:23 am
Forum: IDE's
Topic: How to access Roger's libraries
Replies: 1
Views: 246

Re: How to access Roger's libraries

You should first select a board and then you will see the EEPROM examples in Arduino under File->Examples->Examples for...board.
Which board do you use?
by stevestrong
Thu Oct 22, 2020 9:15 am
Forum: STM32F4 based boards
Topic: STM32f407vet6 blackboard malfunctional PWM
Replies: 13
Views: 653

Re: STM32f407vet6 blackboard malfunctional PWM

It is not enough to set the pin mode. You have to setup the timer corresponding to the used pin (PA8 in your example is mapped to timer 1 channel 1, see here ). A usual setup looks like this: Timer1.init(); // initializes and stops the timer pinMode(PA8, PWM); // sets the pin mode Timer1.setPeriod(<...

Go to advanced search