Search found 23 matches

by fari
Mon Sep 11, 2017 10:04 am
Forum: Code snipplets
Topic: 100 kHz PWM signal with complementary signal
Replies: 6
Views: 449

Re: 100 kHz PWM signal with complementary signal

That is true Roger!. The complementary outputs are given and can not be modified.
Timer one Pins:
- TIM1_CH1 pin (PA.08)
- TIM1_CH1N pin (PB.13)
- TIM1_CH2 pin (PE.11)
- TIM1_CH2N pin (PB.14)
- TIM1_CH3 pin (PA.10)
- TIM1_CH3N pin (PB.15)
by fari
Fri Sep 08, 2017 8:26 pm
Forum: Code snipplets
Topic: 100 kHz PWM signal with complementary signal
Replies: 6
Views: 449

100 kHz PWM signal with complementary signal

It might be interesting to someone here. The code below generate a 100kHz PWM signal on PA8 and its complementary signal on PB13. #define PWM_OUT PA8 //PWM output #define PWM_OUT_COMP PB13 //complementary output void setup(){ // initialize digital pin PC13 as an output. pinMode(PC13, OUTPUT); Hardwa...
by fari
Fri Sep 08, 2017 8:22 pm
Forum: General discussion
Topic: [SOLVED] How to change pwmWrite freq?
Replies: 13
Views: 3102

Re: Solved: How to change pwmWrite freq?

Hi Dave! You code does not work, because you pwmWrite is in the loop and it is permanently overwriting the signal. Here is a code which work #define PWM_OUT PA8 //PWM output #define PWM_OUT_COMP PB13 //complementary output void setup(){ // initialize digital pin PC13 as an output. pinMode(PC13, OUTP...
by fari
Tue Jul 11, 2017 8:02 am
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 178
Views: 10454

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Hi Aleksey!

I have got this display running! Please refer to my post view pages ago.
I could send you my functioning exmaple, if you wish!

Best regards
by fari
Fri May 05, 2017 3:07 pm
Forum: Libraries & Hardware
Topic: OneWire slave interrupt based lib
Replies: 5
Views: 771

Re: OneWire slave interrupt based lib

Thanks Youen! I hope, that every one can use this library with stm32
Sorry! I had no time to archive my bug fix of the 1- wire lib in git!
by fari
Sun Mar 19, 2017 12:27 pm
Forum: Libraries & Hardware
Topic: Adafruit BMP085 and HTU21D libraries work good with HardWire
Replies: 2
Views: 975

Re: Adafruit BMP085 and HTU21D libraries work good with HardWire

Hi Oleg! I have been trying to run the measurement with HTU21D since few days, but with no success. I have mad the changes in the .cpp files (wire exchanged by HWire) and connected the sensor to PB7 and PB6 (Pull up 4.7k and 3.3V VCC) All I get ist 998 (time out). Can you please give me any hint, wh...
by fari
Wed Mar 08, 2017 12:08 pm
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 178
Views: 10454

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Yes! You are right Steve! but I had several problems: - The described pin out of the display on the site of the vender was wrong :x (I tried at this time to lower the frequency, but with the wrong wiring!!! :roll: ). This problem was fundamental - The Init sequence had to be changed slightly ( I hav...
by fari
Tue Mar 07, 2017 4:56 pm
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 178
Views: 10454

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Thanks Steve, David and Stephen for your help!

Finally I have got it done! I have found out the right initialisation sequence. The SPI frequency is crucial. The display works only in the range between 12MHz and 32MHz only. Any frequency out of this range lead to white flashing on the screen!
by fari
Mon Mar 06, 2017 11:58 am
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 178
Views: 10454

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Thanks Steve, David and Stephen for your precious hints!

I will work through your hints. Hopefully one of them would work.
by fari
Sat Mar 04, 2017 7:32 am
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 178
Views: 10454

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Hello Steve! I have followed all the hints above, but I could not run any demo on this display. The device I have bought looks exactly the same as yours at the beginning of this post. I have tried your example with no positive results. Obviously there is a serial parallel converter on the board, tha...