Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi to Arduino firmata PWM #35

Open
Ch3fk0ch88 opened this issue Sep 26, 2018 · 8 comments
Open

Raspberry Pi to Arduino firmata PWM #35

Ch3fk0ch88 opened this issue Sep 26, 2018 · 8 comments

Comments

@Ch3fk0ch88
Copy link

Hello,
i just a Raspberry Pi 3b+ witch is connected to a MEGA 2560.
I want to controll the Mega 2560 with Node-Red which is installed at the Pi to change the speed of PWM Fans.
The Problem is that i need a frequency of 25kHz, is there a way to change it?

Thanks

@Ch3fk0ch88
Copy link
Author

Can Nobody help me?

@monteslu
Copy link
Owner

take a look at my comment on this issue: #31

@Ch3fk0ch88
Copy link
Author

I did before i posted this.
But this only works at these Beaglebone things.
I have no idear how i can do it on the Raspberry.
Installing the Beaglebone-io and than change the pwm frequency dont work.

@monteslu
Copy link
Owner

Do you want to do it on the pi or on the connected arduino? Arduino doesn't let you change the frequency: https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/

The raspberry pi itself has 2 PWM pins, but I'm not sure if it's possible to change that frequency either

@Ch3fk0ch88
Copy link
Author

I controll the Arduino with the Pi,
so i think i have to change the frequency at the Arduino.

It is really not possible to change the frequency of the Arduino?

@monteslu
Copy link
Owner

Correct. You can't change it in Arduino.

@Ch3fk0ch88
Copy link
Author

And when i change it in the Pi it not change the Output of the Arduino...
Crap---

@Ch3fk0ch88
Copy link
Author

It is possible to change the frequency in the Firmata.
I just still not find a way how to change it to 25kHz, just 31kHz etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants