Search found 312 matches

by ted
Sat Mar 16, 2019 3:24 pm
Forum: Projects
Topic: 3 Phase Variable Frequency Drive VFD with F103
Replies: 59
Views: 2036

Re: 3 Phase Variable Frequency Drive VFD with F103

If one table can not do 3 tasks, use 3 table, 1 task for each.
The idea is simple, use 360 point table, each point is 1 deg.
Example for 10 deg. shift; remove 10 first points from table and put them on the end in reverse order.
by ted
Sat Mar 16, 2019 2:36 pm
Forum: Projects
Topic: 3 Phase Variable Frequency Drive VFD with F103
Replies: 59
Views: 2036

Re: 3 Phase Variable Frequency Drive VFD with F103

Because with one table I see the guys have a problem
by ted
Sat Mar 16, 2019 1:50 pm
Forum: Projects
Topic: 3 Phase Variable Frequency Drive VFD with F103
Replies: 59
Views: 2036

Re: 3 Phase Variable Frequency Drive VFD with F103

dannyf wrote:
Sat Mar 16, 2019 12:51 pm

1) have a sine duty table. 256 points for example. use a phase accumulator to index it ?
You mean use 3 tables, two of them shifted ± 120 deg ?
I saw something like that somewhere.
by ted
Fri Mar 15, 2019 4:29 pm
Forum: Projects
Topic: WWVB timecode from blue pill
Replies: 19
Views: 339

Re: WWVB timecode from blue pill

History is more important, don't touch the box.
by ted
Fri Mar 15, 2019 3:57 pm
Forum: Projects
Topic: Square root not working
Replies: 8
Views: 103

Re: Square root not working

Thanks for reminding, just forgot to use that.
by ted
Fri Mar 15, 2019 1:51 pm
Forum: Projects
Topic: WWVB timecode from blue pill
Replies: 19
Views: 339

Re: WWVB timecode from blue pill

Image

Satellite dish and police box
by ted
Fri Mar 15, 2019 12:38 pm
Forum: Projects
Topic: Square root not working
Replies: 8
Views: 103

Re: Square root not working

Thanks Perfect, also works vice-versa. Solved. #include int a = 3; int b = 9; //int A ; const float pi = 3.14159267; void setup() { Serial.begin(9600); } void loop() { float h = sqrt( a * a + b * b ); float ang = sin(45 * pi / 180); float A = (asin(sin(45 * pi / 180)) * 180) / pi; Serial.pr...
by ted
Fri Mar 15, 2019 11:59 am
Forum: Projects
Topic: Square root not working
Replies: 8
Views: 103

Re: Square root not working

Thanks
almost OK, I got 0.71.
How to get more digit after decimal point ?
by ted
Fri Mar 15, 2019 6:06 am
Forum: Projects
Topic: Square root not working
Replies: 8
Views: 103

Re: Square root not working

Thanks it is working for square root but is not working with sine. #include int a = 3; int b = 9; void setup() { Serial.begin(9600); } void loop() { float h = sqrt( a * a + b * b ); float ang = sin(45); Serial.println(h); // 9.49 = OK Serial.println(ang); // 0.85 instead 0.707 }
by ted
Thu Mar 14, 2019 8:20 pm
Forum: Projects
Topic: Square root not working
Replies: 8
Views: 103

Square root not working

Hi Simple program should give h = 9.486 on serial monitor, but is giving 9. Any ideas where is the problem ? /* Math is fun! */ #include "math.h" // include the Math Library int a = 3; int b = 9; int h; void setup() // run once, when the sketch starts { Serial.begin(9600); // set up Serial library a...