Quote Originally Posted by Acetronics View Post
Hi, That's not too difficult ... to use it with PBP

1) Pi (3.141592654 ...)
replace it by integer fraction like 22/7 or 355/113

2) here, angles are expressed in radians ... just change to BINARY radians PBP can deal with
2*pi rads = 360° = 255 binary radians ...

and keep a sharp eye on overflows ( depending on the processor used : 16F - 16 Bits unsigned, 18F with longs - 31 signed bits )

That's all !!!

looks it applies to a resistive load ( lamp, heather ...) but not to inductive loads ... like motors.

Alain
Thanks for your reply Alain but before I can try to implement the equation into the programme I need to know how to calculate it with a calculator.

Name:  eq.jpg
Views: 620
Size:  8.2 KB
The answer is meant to be 480W but I don't get close to it. The bit in brackets comes out with a negative number??
Should have stayed at school I guess..