Search found 14581 matches

by Benj
Wed Oct 29, 2008 4:43 pm
Forum: E-blocks
Topic: Motor control
Replies: 6
Views: 4857

Re: Motor control

Hello Paddy If you like I have a beta version of a stepper motor component complete with simulation. Would be good to get this tested out in the field anyway. To install the component download and open the attachment, open the stepper installer folder and then copy the 5 files into your Flowcode V3/...
by Benj
Wed Oct 29, 2008 4:36 pm
Forum: Components (Comms)
Topic: USB Mass Storage Device
Replies: 11
Views: 8685

Re: USB Mass Storage Device

Hello Kumaran To allow for a mass storage device and also enable data connectivity you would have to create a device with two USB enumeration interfaces. The current Flowcode components will not allow you to do this and it would be a fair amount of work to make it so. Also it would make the current ...
by Benj
Wed Oct 29, 2008 2:50 pm
Forum: E-blocks
Topic: Motor control
Replies: 6
Views: 4857

Re: Motor control

Hello Paddy

The EB022 can handle a single Bipolar or Unipolar Stepper motor.
by Benj
Wed Oct 29, 2008 10:32 am
Forum: General / Misc
Topic: I2C EEPROM
Replies: 5
Views: 5399

Re: I2C EEPROM

Hello Jeff

If you want to save up to 32 values at once then you will have to do the following.

I2C Start
I2C Send address with 0 read/write bit
I2C Send the two byte initial data address
I2C Send the first data byte
...
I2C Send the nth data byte
I2C Stop

Hope this helps.
by Benj
Wed Oct 29, 2008 10:21 am
Forum: Components (Comms)
Topic: USB Mass Storage Device
Replies: 11
Views: 8685

Re: USB Mass Storage Device

Hello Kumaran We thought that mass storage devices were so readily available and cheap that it was not really worth doing a mass storage component. The components available are a COM RS232 replacement, a Slave device and a human interface device. If we get enough requests for the mass storage aspect...
by Benj
Tue Oct 28, 2008 10:12 am
Forum: C and ASM Programming
Topic: Projects, Exercises, and SourceBoost
Replies: 14
Views: 13585

Re: Projects, Exercises, and SourceBoost

Hello What if you take out the pragma definitions, these can be completed at a leter stage by the PPP software. Does the program compile then? /* Flash one LED */ /* David Miles April 2006 */ #include <system.h> void main() { trisa = 0xfe; /* set bit 0 of PORTA for output */ while (1) /* loop foreve...
by Benj
Mon Oct 27, 2008 2:54 pm
Forum: Programming Tips & Tricks
Topic: I/O expansion
Replies: 37
Views: 57361

Re: I/O expansion

Hello Kumaran

Are you using pull up resistors on the two I2C Bus lines?
by Benj
Mon Oct 27, 2008 2:36 pm
Forum: E-blocks
Topic: RFID with 125 kHz antenna
Replies: 1
Views: 2804

Re: RFID with 125 kHz antenna

Hello Rinnie

Please refer here for the 125khz RFID modules and antennas.

http://www.rfsolutions.co.uk/acatalog/R ... odule.html
by Benj
Mon Oct 27, 2008 2:12 pm
Forum: Flowcode V2 & V3
Topic: Flowcode V3 PIC USB Pack Released
Replies: 33
Views: 80273

Flowcode V3 PIC USB Pack Released

We have just released V1 of the Flowcode V3 USB Pack. To download the pack simply click on the link at the bottom of the page and fill out the online form. http://www.matrixmultimedia.com/images/USBPack.gif The Flowcode USB Pack allows for communications between a PC and a USB enabled PICmicro devic...
by Benj
Mon Oct 27, 2008 11:59 am
Forum: Components (Comms)
Topic: SPI Accelerometer
Replies: 7
Views: 5486

Re: SPI Accelerometer

Hi Alex Ok I spent a bit of time on the accelerometer component over the weekend and its now almost ready to go. Im going to test it out tonight and if it works ok then Ill release it tomorrow. It should allow you to use either the 4-wire SPI bus via the hardware SPI bus or the I2C bus via the hardw...
by Benj
Mon Oct 27, 2008 11:02 am
Forum: Flowcode V2 & V3
Topic: Flowcode for ARM print decimal
Replies: 5
Views: 6189

Re: Flowcode for ARM print decimal

Hello Jane

Please see this example for printing out floating point numbers.
by Benj
Mon Oct 27, 2008 10:54 am
Forum: Flowcode V2 & V3
Topic: LCD problem
Replies: 1
Views: 2341

Re: LCD problem

Hello The enable pin is being used it is just on for small amounts of time. Tying the enable pin to VDD will stop the display from working altogether. Are you running the LCD Start macro at the start of your program. If you are experiencing LCD startup problems then calling this macro twice at the s...
by Benj
Mon Oct 27, 2008 10:51 am
Forum: C and ASM Programming
Topic: Projects, Exercises, and SourceBoost
Replies: 14
Views: 13585

Re: Projects, Exercises, and SourceBoost

Hello Ok here is the route to creating your own project, Open sourceboost via the C4PICs course and then click on Project and New. Give your project a name and specify the folder it will be located in and click ok. Then Choose a with empty source file and select the BoostC (NOT BoostC++) toolsuite a...
by Benj
Mon Oct 27, 2008 10:32 am
Forum: Components (Comms)
Topic: one wire pull up question
Replies: 1
Views: 2742

Re: one wire pull up question

Hello

I think you can get away with a 10K so a 9K resistor should be fine. :P
by Benj
Thu Oct 23, 2008 3:04 pm
Forum: Components (Comms)
Topic: SPI Accelerometer
Replies: 7
Views: 5486

Re: SPI Accelerometer

Hello Alex I am looking at using one of these modules (or a very similar module) in one of my current projects. I will keep you informed as to my progress as I will probably make a custom code file to drive the device. Currently I am having problems simply getting the devices onto a circuit board so...
by Benj
Thu Oct 23, 2008 9:19 am
Forum: C and ASM Programming
Topic: CAN code for PIC 18f258
Replies: 5
Views: 6227

Re: CAN code for PIC 18f258

Hello Yes im sure this can be done however im not sure how it would be acheived on the mcc18 compiler. There should be a compiler manual which will detail things like pointers and addresses. However if you wanted to make life easier for your self you could just assign the values by writing directly ...
by Benj
Thu Oct 23, 2008 9:15 am
Forum: Flowcode V2 & V3
Topic: PWM
Replies: 1
Views: 1803

Re: PWM

Hello Flowcode is capable of controlling up to two hardware driven PWM signals. As well as this it is capable of controlling as many software PWM channels as you require using a simple interrupt based routine. See the examples page for my example on bit banged PWM using LEDs. http://www.matrixmultim...
by Benj
Wed Oct 22, 2008 1:37 pm
Forum: Programming Tips & Tricks
Topic: Using Flowcode and C part 1 - Sleep Function
Replies: 8
Views: 14520

Using Flowcode and C part 1 - Sleep Function

http://www.matrixmultimedia.com/images/Article_AllVersions.png One of Flowcode’s real strengths is that it is very easy to use and simple flowchart programs can be created very quickly, even by first-time users. However, flowchart icons alone will only get you so far and you may need to resort to...
by Benj
Wed Oct 22, 2008 9:59 am
Forum: C and ASM Programming
Topic: CAN code for PIC 18f258
Replies: 5
Views: 6227

Re: CAN code for PIC 18f258

Hello

No im afraid we do not currently have code to enable the onboard CAN registers. Hopefully Flowcode will be able to perform this soon. There is no multi register read or write as far as I can tell you will have to write each register value one at a time.
by Benj
Tue Oct 21, 2008 3:14 pm
Forum: General Programming
Topic: keypad
Replies: 8
Views: 8522

Re: keypad

Hello Marcus The keypad component performs the scan and then returns a value almost instantly. If this value is 255 then no key has been pressed. If you want to halt the program until a key has been pressed then use a loop icon to poll the keypad until the value returns is less then 255. eg. keypres...
by Benj
Tue Oct 21, 2008 9:15 am
Forum: Flowcode V2 & V3
Topic: SERVO motor control example needed
Replies: 3
Views: 4733

Re: SERVO motor control example needed

Hello The servo motor example works something like this. Loop { The 8 bits of an output port are cleared to switch off all 8 devices. A timer is set running using CCP1 to set the maximum period per channel. A second timer is set running using CCP2 to set the mark space ration for the single channel ...
by Benj
Mon Oct 20, 2008 9:57 am
Forum: Programming Tips & Tricks
Topic: Communicating with a PC
Replies: 23
Views: 35075

Re: Communicating with a PC

Hello Ian Sorry I thought string variables could be sent via the RS232 send macro but strings can only currently be sent if they are constant values. Another way but not quite as neat would be to have a loop that incremented an index variable and then sent a byte of the string to the rs232. Eg Strin...
by Benj
Mon Oct 20, 2008 9:51 am
Forum: Flowcode V2 & V3
Topic: TPA81 thermal array sensor
Replies: 1
Views: 2030

Re: TPA81 thermal array sensor

Hello I have found these pages which look like they could be some help. Quick guide to I2C including the sending and receiving of bytes and setting up the adress bytes to initiate a read or write function. http://www.robot-electronics.co.uk/htm/using_the_i2c_bus.htm I then found this which is a guid...
by Benj
Fri Oct 17, 2008 9:33 am
Forum: Programming Tips & Tricks
Topic: Communicating with a PC
Replies: 23
Views: 35075

Re: Communicating with a PC

Hello Ian

Here is an example of using the tostring() function.
by Benj
Fri Oct 17, 2008 9:28 am
Forum: Flowcode V2 & V3
Topic: RFid
Replies: 2
Views: 2480

Re: RFid

Hello

Example files from the course are available from here.
http://www.matrixmultimedia.com/abouteb ... ions-X.php