Search found 28 matches

by AndrewC
Fri Oct 07, 2016 1:18 am
Forum: General Programming
Topic: Nextion displays.
Replies: 13
Views: 23760

Re: Nextion displays.

Thanks Bachman. :D That's a great help, just what I was looking for.

Mine has just arrived so I've now got a starting point and can now play. :)
by AndrewC
Mon Oct 03, 2016 7:06 am
Forum: General Programming
Topic: ERRORS SORTED but 8 minutes to COMPILE!
Replies: 5
Views: 5019

Re: ERRORS SORTED but 8 minutes to COMPILE!

What antivirus are you using? That's been my biggest problem regarding slow compiling.

Sorry, only thing my slim knowledge can suggest.
by AndrewC
Fri Sep 23, 2016 12:24 am
Forum: General Programming
Topic: Nextion displays.
Replies: 13
Views: 23760

Re: Nextion displays.

Hi guys. Apologies for not replying ressi. I'm not really sure how it's done (complete novice) as I have yet to receive my display so don't want to lead you in the wrong direction talking gibberish. Also I don't know why you can't register on the site. I had no problems apart from the expected using...
by AndrewC
Fri Sep 09, 2016 11:55 am
Forum: Flowcode V6
Topic: V6 Chip Pack
Replies: 5
Views: 5714

Re: V6 Chip Pack

Thanks John. That's where I've been trying to purchase from but can not access the chip packs. Then again I find some strange things with my account as my copy of Flowcode is shown as activated for 30 days?? So I'm a bit confused. I do hope it's still supported as FC6 is as about as deep as I'd want...
by AndrewC
Fri Sep 09, 2016 10:19 am
Forum: Flowcode V6
Topic: V6 Chip Pack
Replies: 5
Views: 5714

V6 Chip Pack

Hi I'm assuming but just had to ask (couldn't find the answer). :oops: Can I assume that now FC7 is out, the chip packs for FC6 are no longer available? I ask as I'm interested in trying the AVR chip pack for $X's but can't justify $XXX's for FC7 pro plus pic plus AVR. I'm sure FC7 is worth the mone...
by AndrewC
Tue Sep 06, 2016 1:50 pm
Forum: General Programming
Topic: Nextion displays.
Replies: 13
Views: 23760

Re: Nextion displays.

Hi Andrew, This reminds me a lot of the 4D Systems VISI interface, you design the GUI and then control/monitor the GUI using the serial VISI command interface. The Nextion seems to do the same thing but without the open source VISI interface, unless I am missing something. Either way I've not found...
by AndrewC
Tue Aug 30, 2016 9:12 am
Forum: General Programming
Topic: Nextion displays.
Replies: 13
Views: 23760

Nextion displays.

Hi Anybody have any luck in getting one of these Nextion displays to work with a MicroChip PIC micro-controller using flow code? I did find an example in the Russian Flowcode area. But Google translate doesn't quite cut it and I can't access the example. But at $20 for a 3.2 inch screen, it interest...
by AndrewC
Tue Aug 23, 2016 12:50 am
Forum: General Programming
Topic: Counter to track engine crankshaft angle
Replies: 11
Views: 13560

Re: Counter to track engine crankshaft angle

To the right in the image at the red arrow, you are dealing with hardware connections totally outside the program flow (I guess). Yes. But they can be user selectable. Although if you are using an Interrupt On Change (IOC) your choice will be limited. 1. ResetCounter is controlled by software. It s...
by AndrewC
Sat Aug 20, 2016 4:25 am
Forum: General Programming
Topic: Counter to track engine crankshaft angle
Replies: 11
Views: 13560

Re: Counter to track engine crankshaft angle

I don't have FC7 but in 6 you have to select the "Component Macro" block. Once you have selected the block, opened it and selected the encoder option a sub menu will open up. Moving your pointer over these options explains there use. In FC6 my first choice would be to select "Enable". It's all prett...
by AndrewC
Mon Aug 08, 2016 11:26 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Ok. This project is going to fight me to my dying day or drive me to insanity. I have just gone to look at this page a bit deeper http://www.matrixtsl.com/wiki/index.php ... :_General) that medelec35 directed me to.

Where did it go?

Thanks Andrew
by AndrewC
Fri Jul 22, 2016 4:17 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Thanks for the explanation medelec. Quite obvious really in hindsight. I had the thought ' well the program isn't using the input from those pins, how can it be a problem ' but ignoring the fact the processor was probably going mad servicing the interrupt from interference. Thanks again :D Andrew
by AndrewC
Wed Jul 20, 2016 3:43 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Oh the sweet, sweet taste of success!!! :D :D :D A beginners error that caused a huge headache. Not that I understand it, but I can, at will, make this run as sweet as a nut or run like insane mad man. The polling did not work (for me in this case) as it appeared to stop polling/counting while comm...
by AndrewC
Fri Jul 15, 2016 7:15 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

:oops: :oops: Well. .... I knew I shouldn't of posted so swiftly. The above program is wrong. It's looking at the wrong pins. :oops: :oops:

But corrected it and now the behavior is as expected (one missed switch). So now I'm just adding one piece at a time and see what happens.
by AndrewC
Thu Jul 14, 2016 2:41 pm
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

And here's the program I used for the above test.
Encoderresponsetest.fcfx
(11.67 KiB) Downloaded 502 times
Thanks
by AndrewC
Thu Jul 14, 2016 2:39 pm
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Hi again. I’m still not given up on this. I have written a short program to look at the chip’s reaction. Now I am even more confused as this ‘seems’ to imitate the results I have been getting. Basically I have the chip using a IOC on port B. All the chip has to do once the interrupt has occurred is ...
by AndrewC
Tue Apr 12, 2016 2:47 pm
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Hi Benj Thanks for the idea. I gave it a try but still no change. If I do a steady sweep from the index to a fixed stop, about 3300 counts, it gives a very close (but not perfect) repetitive result. If I randomly move it even just a little the count can be off but not always. Rapid movement will mak...
by AndrewC
Mon Apr 11, 2016 2:39 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Hi Still having problems with this. I have changed the chip to an 18F25K22 and clocked at 64MHz. I have also added caps to the outputs from the line receiver to chip. It is still missing counts. An interrupt can occur every 25µ seconds. I'm trying to measure and display an angle and want to repeat t...
by AndrewC
Sun Dec 13, 2015 12:21 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Hi Medelec. Thanks for that. I'll use a chip with more interrupts and work with your example. Regarding the switch bounce. This is 16000 counts per revolution optical encoder (E5-4000-079-IE-D-D-D-3) so thinking switch bounce shouldn't be a problem? :?: The timer interrupt was only used so it wasn't...
by AndrewC
Sat Dec 12, 2015 9:38 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

I think I may have the answer. :?

The data transfer to interrupting the polling on the pins. Is that a possibility?

Is there any way round this?

Blue channel - Encoder
Red - TX on display
whole.jpg
whole.jpg (195.61 KiB) Viewed 22142 times
zoom.jpg
zoom.jpg (197.68 KiB) Viewed 22142 times


Cheers
Andrew
by AndrewC
Fri Dec 11, 2015 9:39 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

But why would the counter decrease?

Wouldn't that be calculated as vibration as the red channel is not switching?

Note: Complete amateur at this, which I'm sure is obvious. :D
by AndrewC
Fri Dec 11, 2015 9:32 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Re: Software or hardware problem?

Made some progress. It's not missing count's. There seems to be some extra erroneous signals being counted on the end of the return stroke. There for the count is less than before movement. This was taken on the output side of the line receiver. Input to Pic. The movement is off hard stop then back ...
by AndrewC
Wed Dec 09, 2015 3:24 am
Forum: General Programming
Topic: Software or hardware problem?
Replies: 16
Views: 22206

Software or hardware problem?

Hi I'm try to read an rotary encoder (US Digital Differential 4000CPR, 16000PPR with index) together with a 26C32 differential line receiver. The trouble is it's losing counts, even at a slow speed (The signal is good from the 26C32). My question is, can I improve the programming with this chip or s...
by AndrewC
Fri Jan 03, 2014 2:09 am
Forum: General Programming
Topic: Pulse counting problem
Replies: 16
Views: 12254

Re: Pulse counting problem

I'll try and help but I'm not really sure what the set up is and how your program works. And I'm the one usually scratching my head :) I guess the input is coming from some sort of switch on the final drive? The way I would do it is something like this: Count=Count+1 Trip=Count*(0.0021/Counts per wh...
by AndrewC
Thu Dec 26, 2013 8:23 am
Forum: General Programming
Topic: PIC floating point questions
Replies: 14
Views: 12345

Re: PIC floating point questions

I'm not sure if I have misunderstood but is this what you are trying to do?
by AndrewC
Thu Nov 14, 2013 9:26 am
Forum: Flowcode V5
Topic: Rising edge Interrupt 18F14K22
Replies: 7
Views: 5826

Re: Rising edge Interrupt 18F14K22

just hope I'm not wrong.
It works as you suspected.
Chosen interrupt works on pins as shown on data sheet. Thanks again