formtapez / ZigUP

CC2530 based multi-purpose ZigBee Relais, Switch, Sensor and Router
314 stars 73 forks source link

PWM Support ? #5

Open michaelslobodskih opened 4 years ago

michaelslobodskih commented 4 years ago

Is it possible to add 2 x channel PWM support to firmware ?

formtapez commented 4 years ago

Technically, that's possible.

https://github.com/formtapez/ZigUP/blob/master/Datasheets/CC2530%20User%20Guide.pdf Look at table on page 81 to find a pin for a timer compare output pin, which was unused before.

michaelslobodskih commented 4 years ago

Nice, so can u add pwm support to your firmware ?

formtapez commented 4 years ago

I don't know that yet. Do you have a good use-case for that? What do you want to control, and how?

michaelslobodskih commented 4 years ago

I have led lamp controller by rc protocol . Inside this lamp there is one little pcb with 4 pins ( +,- , A, B). Channel A & B is pwm , 0-3.3v.

I installed esp8266 and all works fine with additional power supply (AC to DC 3.3 500mah).

And i have iobroker smart home with ~ 10 zigbee devices.

So i'm intresting to replace esp8266 & power supply (is overhead for this project) with only 1 module based on cc253x.