Search found 204 matches

by Derrihj
Tue May 26, 2020 7:01 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

What is the best timing gap between two timers interrupt frequency in code forexample if i use Timer0 and Timer2 in the same code what is the best spacing or it has no problem both can run with the same interrupt frequency? Say forexample if i use two 3 digit 7 seg and one is refleshed by Timer0 and...
by Derrihj
Tue May 19, 2020 3:44 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Hi Martin how are you,hope you are doing well i would like to take you back on this page; http://www.matrixtsl.com/mmforums/viewtopic.php?f=76&t=21119&start=100 were you provided an Excel file for calculating the required numbers to be loaded for the 7seg.Is there a way you can reprogram it ...
by Derrihj
Thu May 14, 2020 9:19 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Am about to finish my PCB ,point of interest Explain more about this current limit setting and temperature when charged as in what to maintain and what not.Thanks Steve.
by Derrihj
Tue May 12, 2020 6:22 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Thank you very much Steve001 for the info problem is i can't have a charger with all those specs and i will need to use my battery everyday and it will need to be charged so I better use what i have to charge the battery than not to charge it at-all as i use it, and yes i will have a relay on my PCB...
by Derrihj
Sat May 09, 2020 7:28 am
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Or I would say delayCount = FireDelay / 0.058 which will give me 94 and when ever i want to add I say delayCount = (FireDelay + 0.0303) / 0.058 and when i want to sub i say delayCount = (FireDelay - 0.0303) / 0.058 will this be okay?
by Derrihj
Sat May 09, 2020 4:27 am
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

I will need to find away of auto changing your delayCount in case 0.0303ms was added or sub on or from the initial fireDelay variable which means delayCount will not always be fixed or equal to 94times (it will be more or less than 94 sometimes)but will be changing due to changes of FireDelay as dec...
by Derrihj
Fri May 08, 2020 5:19 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

More
by Derrihj
Fri May 08, 2020 4:55 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

But i can say this has been so interesting am going to study it more as i get the pcb up and running thanks Martin for the hard work helping me may God bless you.Just finished it's transformer
by Derrihj
Fri May 08, 2020 4:46 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

I will need to make a PCB as soon as possible and see this practically.
by Derrihj
Fri May 08, 2020 4:41 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

I can see but another thing am not getting here may be you can help explain more, in my code the game changer will be FireDelay variable at initial value of 5.452ms but as you see it won't stay fixed at 5.452ms as it will be changing periodically according to changes in battery a 0.0303ms will alway...
by Derrihj
Fri May 08, 2020 4:15 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Thanks Martin i can say there is a clever move in your flowchat, but i have some changes inorder to match exactly what am looking for.(1) in the INT0_ISR i would remove DelayCount or just make (DelayCount = FirDelay) and i would only enable a bool which in your case is (ENABLEDELAY). (2) in Timer2IS...
by Derrihj
Fri May 08, 2020 11:14 am
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

[quote="medelec35" said If interrupt has triggered 94 times then 0.058ms * 94 = 5.452ms[/quote] Thanks Martin so if i take your new 5.452ms as initial FireDelay variable and when i add 0.0303ms i get a 1.022v decrease on Vrms not bad Martin good job done Now if we count 94 times fireDelay ...
by Derrihj
Thu May 07, 2020 8:40 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Thanks Martin but did you understand what am trying to do from my explanation above since my English is not all that good? But at the falling edge the signal will be delayed initially 5.4788ms by FireDelay variable, then after that delay it will be switched on for only 250us then off and int is clea...
by Derrihj
Thu May 07, 2020 8:13 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

And how will Timer2 be enable yet at the time of firing i will be in int0 macro since you told me never to enable an int from another int.Please arange a simple flowchat for me i see it from your flowchat based on the explanation I've just given above.But thank u very much I've just learned how to d...
by Derrihj
Thu May 07, 2020 7:06 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Am going to be firing a signal AFTER ac mains zero crossing, so at the falling edge of int0 i will delay that signal with a default FireDelay variable at 5.4788ms which will give me 140v output from the inverse parallel pair of thyristors.So when ever i need to add or sub a 1v from the 140v,on the n...
by Derrihj
Wed May 06, 2020 10:06 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Yes it should be 32MHz i must have forgot to change sorry about that Martin.Or you can even make 40MHz coz i have 10MHz too here with me.
by Derrihj
Wed May 06, 2020 1:58 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

I would like to get a 1 volt but i think a half a volt deviation or not more than one deviation can be ok i wouldn't like to be adding or subtracting a 2 or more volts on Vrms.Do you think if we canvert the ms to uS can make life easier? Just asking
by Derrihj
Wed May 06, 2020 9:26 am
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Sorry for the delay but Ac mains went off in our area at night due to some problem it has just been restored but below is the flowchat, as you add or subtract 0.030303ms from firedelay variable, should give you a 1 volt Vrms out decrease or increase respectively.So my initial value for Fire delay va...
by Derrihj
Tue May 05, 2020 5:38 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

As you think of the way to clap it off let me calculate the exact values i will be using that is the initial value of FireDelay and the then the exact 1 volt value to be added or subtracted then i will update my prog that i created send it to you and check what happens then you do your thing i trust...
by Derrihj
Tue May 05, 2020 5:09 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Yes when ever at the falling edge of Int0 siginal is delayed by FireDelay variable and if I want to add a 1 volt change on Vrms on the next falling edge, i add or subtract 0.03315ms from my variable.Am still working out the formula above for values of (a) for a more close precise value to give me ex...
by Derrihj
Tue May 05, 2020 1:41 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Thanks Martin i will be waiting as i really need this coz i will always be adding or subtracting 0.03315ms from FireDelay as i want the prog to operate in response to current and voltage.
by Derrihj
Tue May 05, 2020 1:22 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

I created a prog that calculate the values of Vrms as you Varry FireDelay if you want i can post it so that you see what happens when ever you add or subtract a 0.03315ms from FireDelay.
by Derrihj
Tue May 05, 2020 12:33 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

This is the new trick i have used but still haven't got the right timing, tried to bring in Timer0 what i want is, i will be adding 0.03315ms or subtracting 0.03315ms from Variable named FireDelay in code in order to add or subtract 1 volt from Vrms as seen from this: Vrms = 220(1/pi(pi-a+sin(2a)/2)...
by Derrihj
Mon May 04, 2020 2:09 pm
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Hi Martin hope you are having a good day please help me on this one too; How do i get exactly my FireDelay on the display on the press of a button.Wanted to map it in the delay icon but seems like it does not take in float numbers tried the count trick but it is giving me a slightly different number...
by Derrihj
Mon May 04, 2020 1:20 am
Forum: Flowcode V8
Topic: Dc voltmeter 0-55v
Replies: 220
Views: 10942

Re: Dc voltmeter 0-55v

Ok i realized a was supposed to be a floating point number a friend of mine had brought his code for trouble shooting i found out he had used a byte instead of float for values of (a)