Search found 438 matches

by brandonb
Fri Aug 16, 2013 3:34 am
Forum: Flowcode V6
Topic: interface
Replies: 59
Views: 34065

Re: interface

sorry matrix i feel the same way, v5 was awesome, it was simple effective and looked good, i don't get that feeling with v6 :(
by brandonb
Mon Aug 12, 2013 12:41 am
Forum: Programming Tips & Tricks
Topic: sequel strings
Replies: 2
Views: 4834

sequel strings

here's a video of operation of below flowchart (did convert switches to interrupts for video) shows scrolling both directions, and count rollover smooth operation http://youtu.be/DpyipAt3eOQ a quick way of entering strings is to use a look up table, to do this here is the format rom char* name of po...
by brandonb
Wed Aug 07, 2013 6:11 am
Forum: Programming Tips & Tricks
Topic: spi 12bit digital to analog chip
Replies: 14
Views: 17047

Re: spi 12bit digital to analog chip

I think you can easily make a crappy function generator with it. :lol: i wanted to try something simular with auto sensor simulation... this might sound a bit weird but it would be self amusing to be able to datalog auto sensors to sram chips then play the data back with dac to veiw with a scope wh...
by brandonb
Tue Aug 06, 2013 2:07 am
Forum: Programming Tips & Tricks
Topic: spi 12bit digital to analog chip
Replies: 14
Views: 17047

spi 12bit digital to analog chip

i'm using a microchip mcp4921, these chips are easy to use with the spi protocol, since this is a 12bit dac, you can get 4096 different values, using a 5v referance 5volts/4096 = .001220703125 mv_per_step to figure out which number to send to the spi port for desired output voltage is easy to chip_s...
by brandonb
Thu Aug 01, 2013 3:19 am
Forum: Flowcode V5
Topic: Help with SPI
Replies: 3
Views: 3466

Re: Help with SPI

what device are you using? what i do is look at the datasheet and see what it needs to work then send that, usually they have timing diagrams that shows you what you need to know
if document part# i can look it up for you, spi is easy to use every device is different in the way it gets messaged
by brandonb
Wed Jul 24, 2013 5:56 am
Forum: Flowcode V5
Topic: How to create a 2 d array?
Replies: 2
Views: 2848

Re: How to create a 2 d array?

How to create a 2 d array? Such as the:s[12][12] flowcode doesn't support these, but a 2d array is like a checker board which is an array of arrays, each row is an individual array, could do this with math and have one lut table or array of 144 and referance them with math like if you wanted to fin...
by brandonb
Mon Jul 22, 2013 4:27 pm
Forum: Flowcode V5
Topic: rev counter
Replies: 21
Views: 10041

Re: rev counter

if I put a reflective marker on the flywheel at say a point when the piston is top dead center this could count the revolutions but its from here im at a standstill as to get this to some sort of code in the pic no worries, the code that i posted for second flowchart can do any combo of trigger for...
by brandonb
Sun Jul 21, 2013 8:57 pm
Forum: Flowcode V5 Issues
Topic: Still Having problems with Uarts
Replies: 2
Views: 6839

Re: Still Having problems with Uarts

hopefully this is not the problem but i was looking to get this chip and noticed that in the erratica datasheet it says
The EUSART asynchronous operation
may miss the Start bit edge.
LSb of transmitted data can be corrup
http://ww1.microchip.com/downloads/en/D ... 80514E.pdf
by brandonb
Sun Jul 21, 2013 7:31 pm
Forum: Flowcode V5
Topic: rev counter
Replies: 21
Views: 10041

Re: rev counter

do you mean the single ignition wire on the primary side of the ignition coil that comes from the CDI module i thought you men't secondary, does it have electronic ignition or points, the way i designed the rpm deal is that it hooks to a hall effect sensor or can make a circuit to hook to a variabl...
by brandonb
Sun Jul 21, 2013 7:05 pm
Forum: Flowcode V5
Topic: The best way of sending Serial Data?
Replies: 9
Views: 5657

Re: The best way of sending Serial Data?

kersing, can you explain how to convert to rs485 without buying boards?
by brandonb
Sun Jul 21, 2013 5:25 pm
Forum: Flowcode V5
Topic: The best way of sending Serial Data?
Replies: 9
Views: 5657

Re: The best way of sending Serial Data?

i didn't have anything on computer so i wrote this up for you as an example :wink: when using rs232 uart the slave tx lines will short is more than one is hooked to same chip pin, what i do is use a multiplexer chip, like this, it takes two uart tx lines and outputs one signal pro_dash_mux.fcf , if ...
by brandonb
Sun Jul 21, 2013 4:25 pm
Forum: Flowcode V5
Topic: rev counter
Replies: 21
Views: 10041

Re: rev counter

thinking of trying to attatch some thing to the HT lead to trigger the circuit rather like when you connect a strobe light to check your timing no don't do that, i created a neat injector stobe light thingy about 5years ago with a ignition timing light http://www.youtube.com/watch?v=8JxgWZWyLyQ but...
by brandonb
Sun Jul 21, 2013 12:56 pm
Forum: Flowcode V5
Topic: rev counter
Replies: 21
Views: 10041

Re: rev counter

i was playing around with accuracy and wanted to add this one so you can play with this in the simi or on hardware with your signal generator, in this flowchart its currently set up for 8 pulse crank wheel, on the bottom line it shows the counts of the tmr for one rotation of (cam or crank) which ev...
by brandonb
Sun Jul 21, 2013 12:26 pm
Forum: Flowcode V5
Topic: rev counter
Replies: 21
Views: 10041

Re: rev counter

i rigged it up for lcd, the digits change for the position as it should be, *** i had to add variable rpm and its a float to increase resolution as it should it doesn't matter as a two stroke because the crank is still gonna be whats measured, inthis case your gonna get a firing for each cylinder ev...
by brandonb
Sun Jul 21, 2013 11:07 am
Forum: Flowcode V5
Topic: rev counter
Replies: 21
Views: 10041

Re: rev counter

input the amount of teeth on tone wheel at the top //------------------------------------------------------------------ // #define crank 120 // #define cam 60 tonewheel = 1 //number of teeth on tone wheel then type in if its cam or crank driven here count = (100000 / count) * crank //tachometer calc...
by brandonb
Sat Jul 13, 2013 10:05 pm
Forum: Flowcode V5 Free Edition
Topic: division
Replies: 3
Views: 4293

Re: division

Tried to follow the flow chart but must admit to getting a bit lost. to clearify your trying to find what the value in milliseconds one crank degree occupies at a given rpm? in flowchart below i converted it all to crankshaft math unlink previous example i used both this is a simulator so there is ...
by brandonb
Sat Jul 13, 2013 8:18 am
Forum: Flowcode V5 Issues
Topic: LCD1602 questions [SOLVED]
Replies: 2
Views: 6348

Re: LCD1602 questions

rs should be low when sending a command and high when sending characters, in yours i don't see that, every time enable double pulses it has sent two nibbles (one byte), it doesnt appear that A0 is working correctly
by brandonb
Sat Jul 13, 2013 5:33 am
Forum: Flowcode V5
Topic: floating point numbers incorrect
Replies: 1
Views: 1834

Re: floating point numbers incorrect[SOLVED]

got it figured out, it was the way i wrote the equasions, i simplified them and whah lah it works
this works.fcf
(10 KiB) Downloaded 280 times
by brandonb
Sat Jul 13, 2013 2:10 am
Forum: Flowcode V5
Topic: floating point numbers incorrect
Replies: 1
Views: 1834

floating point numbers incorrect

was toying with megasqurts fuel injection rate equasion, it gives correct answer in simulation but not on chip...i have a feeling with this my numbers are to large for 32 bit floats, am i close?
FIGURING OUT MEGASQUIRT.fcf
(10 KiB) Downloaded 258 times
by brandonb
Sat Jul 13, 2013 1:25 am
Forum: Flowcode V5 Free Edition
Topic: division
Replies: 3
Views: 4293

Re: division

i created this crank degree calculator the other week, if you can't open i will convert to another chip so you can,
at the top you enter rpm and a m/s ontime and it converts as shown in image below
[img]
degree.jpg
degree.jpg (32.73 KiB) Viewed 4290 times
[/img]
by brandonb
Sun Jul 07, 2013 11:00 pm
Forum: Flowcode V5
Topic: Play symbol (triangle)
Replies: 27
Views: 17614

Re: Play symbol (triangle)

put it after "below" lcd start if your only using <8 custom char's
by brandonb
Sun Jul 07, 2013 2:10 am
Forum: General Programming
Topic: PIC vs AVR
Replies: 4
Views: 3391

Re: PIC vs AVR

a good selling point for pic is that they keep old parts on catalog for a very long time, so if creating a project now, years in the future you will be able to buy the same chip to program it without needing to change the code for a newer device, the company of microchip is a long standing company t...
by brandonb
Sat Jul 06, 2013 11:24 pm
Forum: Flowcode V5 Free Edition
Topic: free chips supported
Replies: 0
Views: 2197

free chips supported

he demo version will produce hex code for only the following: 16F628A, 16F690, 16F88, 16F84A, 16F877, 18F2220, 18F4431 is this information still current, was hoping that it would support 16f1937 or 16f1933, i believe it lists one of these at least as free, can someone confirm if it does list does i...
by brandonb
Sun Jun 30, 2013 12:27 pm
Forum: Flowcode V5
Topic: pin c0 inop confusion
Replies: 7
Views: 4104

Re: pin c0 inop confusion

Looking at the data sheet, TAD time FOSC/32 looks like the shortest time period you can use. You can go in to ADC external properties set conversion speed to Fosc/32. Then for faster speeds reduce Acquisition time thats what i do, when i test it its always accurate, i dont understand the frc, looki...
by brandonb
Sun Jun 30, 2013 9:28 am
Forum: Flowcode V5
Topic: pin c0 inop confusion
Replies: 7
Views: 4104

Re: pin c0 inop confusion

weird.... can you help me understand how to set the adc parameters correctly to get best accuracy and speed for a 16f1939, not understanding the datasheet on it