Search found 157 matches

by Bobw
Sat Apr 14, 2012 5:54 pm
Forum: Flowcode V5
Topic: Off to a bad start
Replies: 8
Views: 5185

Off to a bad start

Using a 18F4455 PIC hooked every thing up for the programmer, have one LED on port D7, nothing else connected yet. Expecting port D7 to provide the HIGH to turn on the led. (Removed the PIC and put +5 to the socket pin LED lights) Flowcode written and simulated no problems. Compiled and programmed (...
by Bobw
Sat Apr 07, 2012 6:33 am
Forum: Flowcode V5
Topic: Quadrature and 18F4455
Replies: 9
Views: 6878

Re: Quadrature and 18F4455

Benp,

Thanks, will keep that in mind.
I do not for see any problems. This is a low speed AC motor (24VAC).
Being this is my first time dealing with a quad encoder,
I plan on a couple of test programs to see how many pulses per rev of the output shaft and test counting up and down.

Bob
by Bobw
Tue Apr 03, 2012 6:35 pm
Forum: Flowcode V5
Topic: please check my connections
Replies: 4
Views: 3064

Re: please check my connections

Ben,
First of many thanks to come I am sure.
Yes I see it. I was only looking at the interrupt pins not the IOC pins.
Glad I ask the question now.

Bob
by Bobw
Tue Apr 03, 2012 5:11 pm
Forum: Flowcode V5
Topic: please check my connections
Replies: 4
Views: 3064

Re: please check my connections

Ben,

Unless I miss read the data sheet, RB0, RB1, RB2 are listed as interrupts.
I thought only one of the encoder output needed to be on an interrupt?

Bob
by Bobw
Tue Apr 03, 2012 4:49 pm
Forum: Flowcode V5
Topic: please check my connections
Replies: 4
Views: 3064

please check my connections

I am planning on using a 18F4455 pic. I am working on the schematic of the electrical connections, and just want to make sure I haven't, missed something. Switches (inputs) on RD0 thru RD6. Relays (outputs) on RC0 thru RC2 Led (output) on RB5 Quadrature encoder on RB0 and RB3 LCD or a Glcd will be o...
by Bobw
Mon Apr 02, 2012 2:44 pm
Forum: Flowcode V5
Topic: Help choosing a PIC
Replies: 7
Views: 4823

Re: Help choosing a PIC

Thanks for the info everyone.
I have decided to use the 18F4455
It may be a bit overkill for my needs but have already added 2 more I/O functions to my list.
I also see it has 3 interrupt pins, and on paper is plenty fast.
Best part is that FC5 supports it.
Bob
by Bobw
Mon Apr 02, 2012 1:41 pm
Forum: Flowcode V5
Topic: Quadrature and 18F4455
Replies: 9
Views: 6878

Re: Quadrature and 18F4455

Wolfgang, That's what I was working on in the simulator. I set up 2 switches to represent the output of the encoder. I like your method for determining direction. Once my hardware arrives I will need a simple program to just count up the pulses. I have no idea how many motor pulses will equal one re...
by Bobw
Mon Apr 02, 2012 3:42 am
Forum: Flowcode V5 Issues
Topic: Un-able to simulate Quadrature encoder
Replies: 1
Views: 2219

Un-able to simulate Quadrature encoder

Are there plans to make the quadrature encoder simulator active?
My current project will be using two of them and it will sure be easier to debug with the simulator then live.
Trying to use 2 switch inputs for now but its a rough go.

Bob
by Bobw
Mon Apr 02, 2012 12:06 am
Forum: Flowcode V5
Topic: Quadrature and 18F4455
Replies: 9
Views: 6878

Re: Quadrature and 18F4455

John, Thanks for the look at the encoder file. Gave me a bit better understanding on how the encoder should work. But not being able to simulate it is a major downfall. My whole program is going to be based around reading the position based on pulses from the encoder. I was hoping to write most of t...
by Bobw
Sun Apr 01, 2012 7:55 pm
Forum: Flowcode V5
Topic: Quadrature and 18F4455
Replies: 9
Views: 6878

Re: Quadrature and 18F4455

John,

I am using all my own hardware.
I just wanted to be able to see the encoder count up or down depending on which way I rotate it.
Will have to use a couple of switches to simulate it and see if that works.
by Bobw
Sun Apr 01, 2012 7:16 pm
Forum: Flowcode V5
Topic: Quadrature and 18F4455
Replies: 9
Views: 6878

Re: Quadrature and 18F4455

Begs the question of why they added it if it does nothing.
Was going to use two of them, one optical and one mechanical.
Back to the drawing board.
by Bobw
Sun Apr 01, 2012 5:55 pm
Forum: Flowcode V5
Topic: Quadrature and 18F4455
Replies: 9
Views: 6878

Quadrature and 18F4455

I have started a basic FC5 using a 18F4455 I have a Glcd hooked up to portA 0 to 3 The quadrature is on portB 0 an portB 1 I have created a single variable "pcount" as ulong (just want to count pulses) When I set everything up to run the simulation, it runs, the display starts to count up, but the e...
by Bobw
Sun Apr 01, 2012 3:21 pm
Forum: Flowcode V5
Topic: Help choosing a PIC
Replies: 7
Views: 4823

Re: Help choosing a PIC

OK,
I am down to the 18F4431 that has the QEI support built in.
And the 18F4455 that does not.
The 4455 is faster and has more memory.
If I hook up the quadrature encoder on the interrupt on change I/O pins what would I loose/gain with the QEI support?
by Bobw
Sun Apr 01, 2012 1:58 am
Forum: Flowcode V5
Topic: Help choosing a PIC
Replies: 7
Views: 4823

Re: Help choosing a PIC

I was looking at that one.
Lost all my notes in a computer crash, so really starting from scratch.
I thought there were a couple of chips out there now that had built in support for quadrature encoders (QID?)
Just know having extra I/O pins is a good thing.
by Bobw
Sat Mar 31, 2012 10:46 pm
Forum: Flowcode V5
Topic: Help choosing a PIC
Replies: 7
Views: 4823

Re: Help choosing a PIC

Hey Martin,

While I didn't find that thread on my own. I have been to the Microchip site and have been looking at their chip selector guide.
Trying to really plan this one out, not so trial and error like last time.
Only have the PIC and display left to find.

Thanks

Bob
by Bobw
Sat Mar 31, 2012 7:42 pm
Forum: Flowcode V5
Topic: Help choosing a PIC
Replies: 7
Views: 4823

Help choosing a PIC

I am not new to PIC's but far from an expert.. Requirements: Operate from 5 volts 6 inputs for switches. ( I know they can be multiplexed onto one pin) 2 inputs for a quadrature encoder. 4 outputs for relays and led. Outputs for a glcd. 1k of EPROM would be more than enough. I have used16f1827 pics ...
by Bobw
Tue Mar 20, 2012 4:22 pm
Forum: Flowcode V5
Topic: Rotating arrow
Replies: 7
Views: 4688

Re: Rotating arrow

Jonny, I was going to use a Glcg and draw the arrow. Easy enough to draw, but to make the transitions from one to the next takes several code lines per arrow. 3 lines to draw each arrow and 3 more to erase it before drawing the next one. I would need 36 different arrows total. I may just use a 4x20 ...
by Bobw
Sat Mar 17, 2012 7:03 am
Forum: Flowcode V5
Topic: Rotating arrow
Replies: 7
Views: 4688

Re: Rotating arrow

I was wanting to represent degrees of rotation in 10 degree steps, 36 different arrows to draw. Will have to play around with it some more. I like the shift fore and background color idea, will have to give it a go. Still not 100% sold on using an Glcd over a 4x20 lcd, would be nice if I can figure ...
by Bobw
Thu Mar 15, 2012 5:06 am
Forum: Flowcode V5
Topic: Rotating arrow
Replies: 7
Views: 4688

Rotating arrow

I have not done any hardware as of yet, just playing with the simulator and a Glcd. I want to draw an arrow and have it rotate. Do I need to clear the old arrow before drawing the new one, or better yet just issue a single clear command that will clear all the pixels the arrow could possibly occupy,...
by Bobw
Wed Mar 14, 2012 4:29 am
Forum: Flowcode V4
Topic: Glcd basic needs
Replies: 4
Views: 2795

Re: Glcd basic needs

David, Thanks. I contacted Microcontroller shop by phone today, they said I should have my download link and activation code by morning my time in the states. I can wait, still in the planning stages, and need to get some electronic parts still. Would like to try and source them all from Mouser agai...
by Bobw
Tue Mar 13, 2012 3:18 pm
Forum: Flowcode V4
Topic: Glcd basic needs
Replies: 4
Views: 2795

Re: Glcd basic needs

Ben, Thanks. Will have to look around and see what I can find for a display. I have a couple spare 16F1827 chips but think I may need a few more IO pins unless I multiplex a few of the switch inputs. Just waiting for the codes for my FC 5.0 upgrade as we speak. Will document this one better than my ...
by Bobw
Tue Mar 13, 2012 5:13 am
Forum: Flowcode V4
Topic: Glcd basic needs
Replies: 4
Views: 2795

Glcd basic needs

I am designing a new project, and would like to use a Glcd for the display. I do not need something real high end, The meter that the Glcd will replace measures 3 1/4" X 1 1/2" While I can cur the opening larger if need be. 1) What do I look for in just the basic display? 2) Do I need a separate pro...
by Bobw
Fri Mar 09, 2012 4:59 pm
Forum: Flowcode V4
Topic: rotory or quadrature encoders
Replies: 3
Views: 2527

Re: rotory or quadrature encoders

John,
I have been looking at Mouser, have their printed catalog right here. Still gathering ideas and parts for my next project.
Trying to get my FC home upgraded to Pro at the moment.
Will have to look into the Graphical LCD, would make things really look nice compared to a 4x20 display.
by Bobw
Fri Mar 09, 2012 4:29 pm
Forum: Flowcode V4
Topic: rotory or quadrature encoders
Replies: 3
Views: 2527

rotory or quadrature encoders

Anyone have a source for a through hole. (panel mount) rotor encoder?
I am looking for 2 of them that have a min 20 pulses per rev with no detents.

Also, how hard is it to use flowcode with a graphical LCD ? I have used the character types but not the graphical ones.

Bob
by Bobw
Sun May 29, 2011 12:21 am
Forum: Flowcode V4
Topic: Binary clock PIC recommendations
Replies: 0
Views: 2136

Binary clock PIC recommendations

OK, time to delve into something new. I want to build a binary clock. I need 16 Outputs for the LEDs, 3 Inputs for the time set switches. Some sort of internal oscillator for the timing. Not sure about a 3 or 5 volt PIC yet. 3 volts does provide for permissibility to power it with some batteries. St...