Hi Guys
How can I make the AtoD read 1-4V as 0 - 1023 counts instead of 0-5V without using the Vref+ and Vref-.
Or can you set the Vref+ and Vref- with the software.
Search found 130 matches
- Sat Feb 18, 2012 7:25 am
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
- Mon Feb 13, 2012 3:41 pm
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
Re: Convert voltage to Neg kg
Hi Nicolas The scale is working at the moment with a zero & calibration button to capture the full load AtoD and the zero AtoD values. Then I have a range from 102 - 921 AtoD counts to work with as 102=0kg and 921="load cell full load capacity in kg" My problem is how I make the software work out th...
- Sat Feb 11, 2012 6:53 pm
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
Re: Convert voltage to Neg kg
Hi Martin
I think I can make it work, but just one last question.
Will the scale be more accurate using 0 - 5V for 0 - fullscale kg or 2.5V - 5V for 0 - fullscale kg?
I think I can make it work, but just one last question.
Will the scale be more accurate using 0 - 5V for 0 - fullscale kg or 2.5V - 5V for 0 - fullscale kg?
- Sat Feb 11, 2012 5:59 pm
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
Re: Convert voltage to Neg kg
Hi Martin
Thanks for your time, The code are working really well.
I was thinking of changing "Read_W = fdiv(Read_W,1000.0)" to "Read_W = fdiv(Read_W,500.0)" to read 0-5V
Are there any other way the code can be changed for different weights like when I'm calibrating a scale.
Thanks for your time, The code are working really well.
I was thinking of changing "Read_W = fdiv(Read_W,1000.0)" to "Read_W = fdiv(Read_W,500.0)" to read 0-5V
Are there any other way the code can be changed for different weights like when I'm calibrating a scale.
- Sat Feb 11, 2012 2:55 pm
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
Re: Convert voltage to Neg kg
Hi Martin
Yes my problem is the computer I'm working from is from a client of mine and they don't want me to use there registaration details on any forums.
Yes my problem is the computer I'm working from is from a client of mine and they don't want me to use there registaration details on any forums.
- Sat Feb 11, 2012 11:30 am
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
Re: Convert voltage to Neg kg
Hi Nicolas
Sorry for not getting back sooner.
I did like you said but when I load the program to the pic the display only shows 0.000.
Is it possible that a pic 16f876 might not be able to do this kind of maths?
Sorry for not getting back sooner.
I did like you said but when I load the program to the pic the display only shows 0.000.
Is it possible that a pic 16f876 might not be able to do this kind of maths?
- Mon Feb 06, 2012 10:52 am
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
Re: Convert voltage to Neg kg
Hi Nicolas
Everything is working now except for the neg value.
Will this work with the *1 as -1
Voltage = adc_level*5/(1023/100)*1
Everything is working now except for the neg value.
Will this work with the *1 as -1
Voltage = adc_level*5/(1023/100)*1
- Mon Feb 06, 2012 10:46 am
- Forum: C and ASM Programming
- Topic: Enable Vref- with ASM
- Replies: 2
- Views: 4218
Re: Enable Vref- with ASM
Hi Nicolas
Thanks for the reply.
I've changed the Adcon1 bit to 0x08 in flowcode so when you enable Vref+ in the AtoD setup it enable the Vref- also.
Thanks for the reply.
I've changed the Adcon1 bit to 0x08 in flowcode so when you enable Vref+ in the AtoD setup it enable the Vref- also.
- Fri Feb 03, 2012 9:59 pm
- Forum: C and ASM Programming
- Topic: Enable Vref- with ASM
- Replies: 2
- Views: 4218
Enable Vref- with ASM
Hi
Can the Vref(-) on a pic16f877 be activated with asm code in flowcode?
If not how can it be activated in flowcode?
Can the Vref(-) on a pic16f877 be activated with asm code in flowcode?
If not how can it be activated in flowcode?
- Thu Feb 02, 2012 2:55 pm
- Forum: Flowcode V2 & V3
- Topic: Convert voltage to Neg kg
- Replies: 28
- Views: 24004
Convert voltage to Neg kg
Hi guys I'm using an AD620AN circuit to amplify a 0-10mV signal to 0 - 5V then I use a pic16F877 to convert the 0-5V to Kg. Is it possible to display everything under 2.5V as negative kg and everything above 2.5V as Positive kg with 2.5V as my zero offset? If there is a better way of doing this plea...
- Fri Nov 25, 2011 3:38 pm
- Forum: Electronics products
- Topic: Tina AD620 Spice Model
- Replies: 1
- Views: 4750
Tina AD620 Spice Model
Hi guys
I want to build a circiut in tina design soft but can not figure out where to connect the wires on the AD620 as there are no pin numbers on any of the pins?
Please advice on how to build a circiut using spice models in tina or how to asign pin numbers.
![Confused :?](./images/smilies/icon_confused.gif)
Please advice on how to build a circiut using spice models in tina or how to asign pin numbers.
- Thu Nov 17, 2011 6:38 pm
- Forum: General Programming
- Topic: LCD display help
- Replies: 5
- Views: 6704
Re: LCD display help
Hi chand00786 Like medelec35 said your LCD connections might be the problem. Connect your LCD as below: No need for a crystal in Proteus LCD runs in 4-bit Pic RB0 to LCD D4 Pic RB1 to LCD D5 Pic RB2 to LCD D6 Pic RB3 to LCD D7 Pic RB4 to LCD RS Pic RB5 to LCD E LCD RW to GND LCD VEE N/A LCD VDD to 5...
- Wed Nov 16, 2011 6:21 am
- Forum: General Programming
- Topic: Pic to excel VBA
- Replies: 1
- Views: 2450
Pic to excel VBA
Hi I wrote a program to log data from a pic into excel. The program works fine but uses a lot of cpu power (50%) on small pc's when looping for new data. what can I change to use less cpu power when waiting for data from the com port? Private Sub CommandButton3_Click() Dim intPortID As Integer ' Ex....
- Fri Nov 11, 2011 6:37 am
- Forum: E-blocks
- Topic: Serial SRAM - 23K256
- Replies: 1
- Views: 2618
Serial SRAM - 23K256
Hi
Can you please tel me if there is an e-block available that works the same as this SRAM chip from Microchip?
"256K SPI Bus Low-Power Serial SRAM - 23K256"
I'm looking for some sample code on how to use one of these chips as a buffer with flowcode & pic16f877.
Can you please tel me if there is an e-block available that works the same as this SRAM chip from Microchip?
"256K SPI Bus Low-Power Serial SRAM - 23K256"
I'm looking for some sample code on how to use one of these chips as a buffer with flowcode & pic16f877.
- Wed Nov 09, 2011 7:01 pm
- Forum: General Programming
- Topic: Pic to Excel Visual Basic
- Replies: 4
- Views: 3948
Re: Pic to Excel Visual Basic
Hi dbasnett
Thanks for your help. It worked like a charm.
I did play around with the mid function before but being a noob in VB I had the brackets all wrong.![Embarassed :oops:](./images/smilies/icon_redface.gif)
Thanks for your help. It worked like a charm.
I did play around with the mid function before but being a noob in VB I had the brackets all wrong.
![Embarassed :oops:](./images/smilies/icon_redface.gif)
- Tue Nov 08, 2011 3:03 pm
- Forum: General Programming
- Topic: Pic to Excel Visual Basic
- Replies: 4
- Views: 3948
Re: Pic to Excel Visual Basic
Hi dbasnett Thanx for the reply, I tried the Mid function but then I only recieve blank spaces. please look at my code and see if you can help. It's my first prog in Vb so I'm still learning Private Sub CommandButton3_Click() Dim intPortID As Integer ' Ex. 1, 2, 3, 4 for COM1 - COM4 Dim lngStatus As...
- Tue Nov 08, 2011 10:57 am
- Forum: General Programming
- Topic: Pic to Excel Visual Basic
- Replies: 4
- Views: 3948
Pic to Excel Visual Basic
Hi I'm not sure if I'm allowed to ask a Vb question on this forum but please see if you can help? I've programmed a pic16f877 to send data to an excel spreadsheet via com port 1 on the pc the communication is working and all the data are recieved in the spread sheet like expected. The Protocol forma...
- Wed Jul 27, 2011 7:18 pm
- Forum: E-blocks
- Topic: Digital panel meter
- Replies: 0
- Views: 2466
Digital panel meter
Hi There I'm starting a new project building a digital panel meter for a scale. I'm using a Pic16f877 on a V3 PIC dev board The problem is that I must be able to calibrate a zero offset and a fullscale value into the panel meter depending on the voltage that I recieve from the scale. The voltage wil...
- Thu Apr 14, 2011 7:56 pm
- Forum: C and ASM Programming
- Topic: Add large numbers in C or Flowcode
- Replies: 4
- Views: 5672
Re: Add large numbers in C or Flowcode
Hi Ben
Me again... Still can not get the 16F877 to add two 6 digit numbers & print to LCD except if I cheat.
Please let me know what you think about my cheating method and if it will work right up to 1000000.
![Confused :?](./images/smilies/icon_confused.gif)
Please let me know what you think about my cheating method and if it will work right up to 1000000.
- Sat Apr 09, 2011 8:46 am
- Forum: C and ASM Programming
- Topic: Add large numbers in C or Flowcode
- Replies: 4
- Views: 5672
Re: Add large numbers in C or Flowcode
Hi Ben
Sorry about the confusion.
I'm not sure what's going on, but the last three post's we did under the subject "7bit ASCII with odd parity" in the E-Blocks section are not on the forum so I did not receive your last answer.
Can you please post it again if possible?
Sorry about the confusion.
I'm not sure what's going on, but the last three post's we did under the subject "7bit ASCII with odd parity" in the E-Blocks section are not on the forum so I did not receive your last answer.
Can you please post it again if possible?
- Fri Apr 08, 2011 4:19 pm
- Forum: C and ASM Programming
- Topic: Add large numbers in C or Flowcode
- Replies: 4
- Views: 5672
Add large numbers in C or Flowcode
I need to add two large 6 digit numbers and print the answer on LCD the answer will never be more than 999999. Ben suggested that I use a signed long varx; in C & also edit the PrintNumber (for LCD) but I'm still new to C & need some more help. Is there any way to do this in flowcode or any samples ...
- Thu Apr 07, 2011 6:08 pm
- Forum: Flowcode V4
- Topic: Adding and manipulating large numbers
- Replies: 6
- Views: 3570
Adding 6 digit numbers
Hi Ben
If I want to use the signed long varx; to add/subtract two 6 digit numbers like you said, must I replace the x with the varable holding one of the numbers?
What must I change in the LCD print number function?
If I want to use the signed long varx; to add/subtract two 6 digit numbers like you said, must I replace the x with the varable holding one of the numbers?
What must I change in the LCD print number function?
- Sat Mar 26, 2011 9:01 am
- Forum: Flowcode V4
- Topic: Adding and manipulating large numbers
- Replies: 6
- Views: 3570
Adding and manipulating large numbers
Hi Ben
So far my instrument are working and adding the numbers like it should but if I use numbers larger than that of an int. then I get problems.
what must I do to add numbers like 50000 & 80000 & display it on lcd again
So far my instrument are working and adding the numbers like it should but if I use numbers larger than that of an int. then I get problems.
what must I do to add numbers like 50000 & 80000 & display it on lcd again
- Tue Mar 15, 2011 6:49 pm
- Forum: E-blocks
- Topic: 7bit ascii with odd parity
- Replies: 12
- Views: 10546
Re: 7bit ascii with odd parity
Hi Ben Please have a look at my prog. and see if you can see were I'm going wrong. The attatched prog. can recieve the data and show it like +123456 but if the instrument sends a short number like +321 the lcd wil show +000321 The instrument can send any number from 0 to 199999 I tried to remove the...
- Mon Mar 14, 2011 2:07 pm
- Forum: E-blocks
- Topic: 7bit ascii with odd parity
- Replies: 12
- Views: 10546
Re: 7bit ascii with odd parity
The multiplier part makes sense but if I receive a number like 031045 won’t it remove both zeros instead of just the first one because the six digits coming thru will change the whole time like on a scale instrument.