Search found 10 matches

by Woode
Wed May 27, 2020 5:13 pm
Forum: Programming Tips & Tricks
Topic: Controlling Motors With A Microcontroller
Replies: 12
Views: 20743

Re: Controlling Motors With A Microcontroller

In the past 10-11 years a lot has changed in the world of electronics. Servos, Stepper Motors, Brush Less DC motors and Arduino computers etc. I never completed my PWM project because of the difficulty of providing overload/short circuit protection for the L293/L298 H bridges. There is now another ...
by Woode
Tue Aug 10, 2010 4:29 pm
Forum: Programming Tips & Tricks
Topic: Controlling Motors With A Microcontroller
Replies: 12
Views: 20743

Re: Controlling Motors With A Microcontroller

Further to my last post on this subject (25 April 2009) I have been doing some experiments and found the following:- If you take IN1 and IN2 through diodes to a pull down resistor and connect the EN1/2 terminal to this instead of the supply you can get the truth table below:- IN1 -- IN2 --- Functio...
by Woode
Wed Jun 10, 2009 10:57 pm
Forum: E-blocks
Topic: Keypad flowchart samples for begginers
Replies: 2
Views: 3733

Re: Keypad flowchart multiple entry of keys

The code given to stop multiple entry of keys traps the program in a loop. It is never a good idea to trap programs in a loop as they cannot do anything else until released. This code stops the multiple entry but does not trap the program in a loop. Delays do the same, it is better to use an interru...
by Woode
Wed Jun 10, 2009 5:50 pm
Forum: Programming Tips & Tricks
Topic: Flowcode V4 and large Keypads
Replies: 4
Views: 7409

Flowcode V4 and large Keypads

Version 4 allows multiple keypads so the number of pads is only limited by the number of nibles (half bytes) available. ie. You can set up 48 keys (3 keypads) from 12 bits! :lol: The keypads are selected to the custom setting and an image added to the panel behind the keypad. This image is 120x120 p...
by Woode
Wed May 13, 2009 3:58 pm
Forum: Components (Comms)
Topic: USB Slave - Arrays of Bytes & Integers
Replies: 0
Views: 3077

ο»ΏUSB Slave - Arrays of Bytes & Integers

I think the Flowcode designers were trying to keep things simple with their various ‘Slave Service Macro Parameters’. :roll: Well, lets get a bit more complicated, 1. A string is an array of ASCII characters ie. an array of numbers. 2. An array of numbers is exactly that, an array of numbers. 3....
by Woode
Wed Apr 29, 2009 5:50 pm
Forum: Programming Tips & Tricks
Topic: I/O Expansion - Parallel Port & 82C55's
Replies: 0
Views: 3905

ο»ΏI/O Expansion - Parallel Port & 82C55's

Have you got an old Parallel Port project that uses 8255 chips for Input/Output that is not used because you have no Parallel Port? :cry: Then read on, a 28 pin ECIO interfaces the computer USB port to the projects Parallel Port. It uses Port B & C so Port A is still free for other applications. :lo...
by Woode
Mon Apr 27, 2009 6:35 pm
Forum: Programming Tips & Tricks
Topic: LCD & 4x4 Keypad on the same PORT, plus a PICkit2 Adaptor
Replies: 0
Views: 4024

ο»ΏLCD & 4x4 Keypad on the same PORT, plus a PICkit2 Adaptor

There is no need to wait for Flowcode V4 to implement a 4x4 keypad. The files in the link show, in detail, how to do it now. :lol: They also allow an LCD to be driven from the same port! The ‘Enable’ has been transferred to Port C although this can easily be changed to another Port in the ‘...
by Woode
Sun Apr 26, 2009 9:43 pm
Forum: Flowcode V2 & V3
Topic: USB Slave Transmit Time
Replies: 0
Views: 2256

ο»ΏUSB Slave Transmit Time

I have been measuring the transmit time for the USB Slave by using ‘GetTickCount’ or ‘TimeGetTime’ in the Delphi program IE:- StartT:= TimeGetTime; // or GetTickCount lRetVal := ECIO_Transmit(bDataOut,TxLen,@nTxDataCnt,bDataIn,32,@nRxDataCnt,50); EndT:= TimeGetTime; // or GetTickCount Som...
by Woode
Sat Apr 25, 2009 3:07 pm
Forum: Programming Tips & Tricks
Topic: Controlling Motors With A Microcontroller
Replies: 12
Views: 20743

Re: Controlling Motors With A Microcontroller

Hi I have just seen the article on ‘Controlling Motors with a Microcontroller’ and would like to point out the following:- Taking Motor A, if both IN1 & IN2 are both 0 or 1 this is a ‘Fast motor stop’. A ‘Slow motor stop’ or free running stop is where no voltage is applied to the moto...
by Woode
Tue Mar 03, 2009 10:39 pm
Forum: Flowcode V2 & V3
Topic: Using PICkit2 with Flowcode
Replies: 50
Views: 114380

Re: Using PICkit2 with Flowcode

Hi. I had trouble getting this to work. Here are the settings I ended up with, may be it will help some one. ο»ΏPICkit 2 Configurations etc - Target - 16F887 March 2009 8) Chip - Complier options These should be set automatically if you install Flowcode 3.6.11 and above with PICkit 2 option selected...