Search found 364 matches

by jollybv
Mon Aug 31, 2020 3:41 pm
Forum: Flowcode V7
Topic: Compiling Error
Replies: 3
Views: 328

Re: Compiling Error

Hi Martin

Thanks for that i reduced the size of some of the String variables and problem sorted.
by jollybv
Mon Aug 31, 2020 1:12 pm
Forum: Flowcode V7
Topic: Compiling Error
Replies: 3
Views: 328

Compiling Error

Hi Guys

I have a strange problem and not sure what to do when I compile i get an error which does not make sense see the picture below
Error.JPG
Error.JPG (30.26 KiB) Viewed 328 times
If i disabel the text that has been circled below it compiles without error, what could be the problem?
Message.JPG
Message.JPG (24.23 KiB) Viewed 328 times
by jollybv
Fri Jul 17, 2020 2:14 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Ben

Thanks for your reply that seems to have solved the problem I set it to Focs / 128, now I need to get the PID side of things working (tried buying a PID controller but with this Vuires cant get much here in SA)
by jollybv
Fri Jul 17, 2020 8:40 am
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Guys Im not sure if this is still part of the problem with the A/D component not working correctly. On A0 I have a voltage of 0.182 which im trying to display on the LCD screen. I'm using (get analog voltage) and then converting it to a string then printing to screen but what it displays is 0.078...
by jollybv
Fri Jul 03, 2020 8:47 am
Forum: Flowcode V7
Topic: PID Temperature Control
Replies: 4
Views: 357

Re: PID Temperature Control

Hi Ben Thanks for the reply I'm getting somewhere the problem I'm having is the PWM output I have tried implementing the Scaledtemp but don't seem to know what I'm doing. Say I want to have a maximum temperature if 125 and temperature is 0 then the pwm must be 255 and when it gets closer to the 125 ...
by jollybv
Thu Jul 02, 2020 1:24 pm
Forum: Flowcode V7
Topic: PID Temperature Control
Replies: 4
Views: 357

Re: PID Temperature Control

Hi Qmesar

Thanks for the reply my only problem is that I am not using a DsPIC so not sure if the DSP functions will work on a PIC18F47K40
by jollybv
Thu Jul 02, 2020 9:13 am
Forum: Flowcode V7
Topic: PID Temperature Control
Replies: 4
Views: 357

PID Temperature Control

Hi Guys I'm trying to make a PID controller but am a bit lost I have made a test program using a PID example I found on the net with no luck I'm not sure where to insert the changing temperature that will then change the duty cycle of the PWM can someone please explain what I need to do. PIDTest.fcfx
by jollybv
Tue Jun 30, 2020 4:49 pm
Forum: General Programming
Topic: Percentage
Replies: 4
Views: 336

Re: Percentage

Thanks Guys I've got it working
by jollybv
Tue Jun 30, 2020 3:59 pm
Forum: General Programming
Topic: Percentage
Replies: 4
Views: 336

Percentage

Hi Guys I'm trying to display percentage on my LCD display the formula I'm using is Percentage = ((DutyCycle / 255) * 100) what happens it will display 100% (255 / 255) * 100 but will not display any other value eg Percentage = (( 253 / 255) * 100 ) which should give me 99.21 % except it gives me 0%...
by jollybv
Thu Jun 04, 2020 2:05 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Martin

I have given it a try and it is now working Thanks so much :D
by jollybv
Thu Jun 04, 2020 1:50 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Martin

Sorry for responding so late been out the whole day, Thanks for your help I will give it a try and let you know
by jollybv
Thu Jun 04, 2020 7:22 am
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Guys

As the PWM Component is not working and I'm waiting for Ben to have a look at it, does anyone know how I can make a PWM using a timer interrupt?
by jollybv
Tue Jun 02, 2020 3:40 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi yes have remapped with no success
and did set the duty cycle to 15 but alas no luck,
by jollybv
Tue Jun 02, 2020 3:08 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Thanks, Martin but ist still does not work think there must be something wrong with the PWM component
by jollybv
Tue Jun 02, 2020 2:31 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Martin I'm a bit lost now The PWM will work at the correct frequency if Timer2 interrupt Prescale Rate is set to the required PWM Prescale. Timer 2 interrupt Rollover Value is set to the required PWM period. The timer 2 interrupt can be enabled, then disabled straight away. I have set the rollove...
by jollybv
Tue Jun 02, 2020 12:23 pm
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Ben

I have tried to do that without any luck, but if I enable the disabled code in the TimerInt macro in the example program below then I get a frequency of 492Hz, this PWM refuses to work on any of the timers.
TestPWM.fcfx
(10.79 KiB) Downloaded 27 times
by jollybv
Tue Jun 02, 2020 7:51 am
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Howard

Thanks for the reply I have turned off the watchdog timer but that does not help. I'm not sure how to set the timer 2 and 4 to show me a predetermined frequancy could you please explain
by jollybv
Sun May 31, 2020 10:21 am
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

Re: PWM PIC18F47K40

Hi Martin

Thanks, I have tried all of the above suggestions but still can't get it to work, 1-second flasher working on RB0 So Pick working correctly, Have updated flowcode tried using Timer 4 still noting so not sure where to go from here.
by jollybv
Sat May 30, 2020 11:55 am
Forum: Bug reports
Topic: PWM PIC18F47K40
Replies: 21
Views: 1307

PWM PIC18F47K40

Hi Guys

I am trying to get the PWM to work it works in the test program below in simulation but will not work on the hardware any ideas
TestPWM.fcfx
(9.06 KiB) Downloaded 31 times
by jollybv
Sat May 30, 2020 10:07 am
Forum: Flowcode V7
Topic: Analog To digital
Replies: 4
Views: 312

Re: Analog To digital

Hi Martin

I have used the formula it works quite nicely but the accuracy is about 2 degrees off. What I have done to try to solve the problem is after temp = temp / 10 I add 2 to temp.
Also, do you perhaps know how I would go about making a temperature PID
by jollybv
Thu May 28, 2020 9:47 am
Forum: Flowcode V7
Topic: Analog To digital
Replies: 4
Views: 312

Re: Analog To digital

Hi Martin

Thanks let me give the temp = temp *49 / 10 a try, as I see the remapping is for Arduino and I'm working with PIC. I did try the remapping but could not find user
by jollybv
Wed May 27, 2020 3:38 pm
Forum: Flowcode V7
Topic: Analog To digital
Replies: 4
Views: 312

Analog To digital

Hi Guys This is the first time I'm working with the A/D, I'm working with a 5v PSU the input voltage is connected to (A0) with a 10mv / degree input voltage. What has lost me is once you read the value then you multiply it by 500 Temp = fmul (ATD, 500) this is what I have seen in some examples. Shou...
by jollybv
Sat Nov 23, 2019 9:47 am
Forum: Bug reports
Topic: Pic16F1618 UART Remap
Replies: 18
Views: 2912

Re: Pic16F1618 UART Remap

Hi Ben

Yes I have but as soon as I select Channel 1 the Uart does not work anymore at any speed i can only use the software at 9600.
by jollybv
Thu Nov 21, 2019 6:44 am
Forum: Bug reports
Topic: Pic16F1618 UART Remap
Replies: 18
Views: 2912

Re: Pic16F1618 UART Remap

Hi Ben

Were you able to find the fault?
by jollybv
Sat Nov 16, 2019 9:26 am
Forum: Bug reports
Topic: Pic16F1618 UART Remap
Replies: 18
Views: 2912

Re: Pic16F1618 UART Remap

Hi Ben

Here is the program
Mini 2.fcfx
(17.2 KiB) Downloaded 67 times