Search found 91 matches
- Mon Aug 12, 2013 4:03 am
- Forum: Flowcode V5
- Topic: Xbee PRO 900HP with PIC in API mode
- Replies: 0
- Views: 2044
Xbee PRO 900HP with PIC in API mode
Hi, i would like to know if someone have already tried to work with the Xbee Pro in API mode with flowcode ? I would like to be able to decode the API stream so i can use the data?
- Sun Jun 16, 2013 3:50 pm
- Forum: Flowcode V5
- Topic: Help with converting a simple C function to flowcode?
- Replies: 1
- Views: 2360
Help with converting a simple C function to flowcode?
Hi, i need some help at converting some sample function i got to control a Sabertooth 2X25 V2 motor driver.: http://www.dimensionengineering.com/products/sabertooth2x25 They have a sample C file that control this driver from a PIC. I have attached their sample file, can someone take a look at it, i ...
- Thu Dec 13, 2012 3:15 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Ok, now i got a problem for Ben!! I am strugling with the formula, it seems that on a variable i got a too long uLong number. So i will post the current value of my sensor. and how i read them to make shure it is ok for a PIC microcontroller. Sensor EEPROM calibration data: AC1 = 7382 AC2 = -1137 AC...
- Tue Dec 11, 2012 4:11 pm
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Yep it has worked perfectly for over 8 hours! The only thing i notice is the pressure value is way higher then the advertised atmospheric pressire of my local weather channel. The weather report say it should be 100.2 kPa but the sensor give me around 170 kPa. I have read that we must compensate the...
- Tue Dec 11, 2012 3:25 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Good news! believe it or not, i have found the bug!! It was in the master_readi2c macro the while .N_data > 1 must be while .N_Data > 0. IT seems to loop fine now!!
- Mon Dec 10, 2012 11:15 pm
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
I understand! Your help is really appreciated! I will have to take a look at it a little bit more, but i really think there is something in the I2C code. I don't understand why it work a little bit better at 400Mhz then at 100Mhz in the I2C config. I really miss something somewhere. Anyone else as a...
- Mon Dec 10, 2012 1:31 pm
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
I haven't change the code. This is the exact same one as on my last post. I have tried it on a PIC16F887 and on this PIC, it seems to always do the first cycle and freeze at the second write. On my PIC18F, once in a while it finish the first cycle when the I2C frequency is set to 400Mhz, if set to a...
- Mon Dec 10, 2012 3:14 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Another update, i got a PIC16F887 laying around so i have tested the code on it! Same thing!! but on this one it always go trhu the first loop and give me 1 pressure/temperature reading, after that it just freeze too! I am running the PIC16887 at 4Mhz, the 18F was at 19.6026Mhz. It really seems to b...
- Mon Dec 10, 2012 1:41 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
I have removed the while loop and put a 26ms delay, i have updated the I2C cal file, and it still does the same problem!!!! It seems to freeze on write!!
- Sun Dec 09, 2012 5:26 pm
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Just for a follow-up, i have tested my second sensor and it does exactly the same thing. But i have found that when i change the frequency setting from the default 100Mhz to 400Mhz, one in a while it does the first loop completely so i have a reading of the temperature and the pressure, but it oneve...
- Sun Dec 09, 2012 3:32 pm
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
No go! It does exactly the same!!
Is there any known bug with the I2C in flowcode for PIC?
It is able to loop thru the write/read cycle twice after that no more ack comming from the BMP085! I have a second sensor here, i will try it to see if it is a sensor problem.
Is there any known bug with the I2C in flowcode for PIC?
It is able to loop thru the write/read cycle twice after that no more ack comming from the BMP085! I have a second sensor here, i will try it to see if it is a sensor problem.
- Sat Dec 08, 2012 10:51 pm
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Ok i have done a lot of work and i still have a bug!! Here it is. I get the BMP085 parameter at start, "bmp085_get_press" It goes to the "bmp085_get_ut" macro fine, so it thru the first "bmp085_read_uval" macro fine and get the RA temperature DATA the UT value i receive...
- Sat Dec 08, 2012 2:46 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Ok, I have started to work on this, but to be honest, it is my first time a I2C devic and i am completely lost!! This is what i have so far! I am using a PIC18F4685 For now i would just like to show the uptime, temperature in dec celsius and atmospheric pressure, is someone who know can revies this ...
- Fri Dec 07, 2012 2:11 pm
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
Wow thanx a lot!! just to make shure, does i need to import every macro you have added to this zip file to my flowchart ?
And if yes is there any procedure to do that correctly ? And finally, Does it handle the temperature side of the sensor too ?
And if yes is there any procedure to do that correctly ? And finally, Does it handle the temperature side of the sensor too ?
- Thu Dec 06, 2012 1:32 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
There is more information including code for arduino that should be adaptable to PIC device on this site!
https://www.adafruit.com/products/391
I don't really care about altitude, but i would like to have the actual barometric pressure in inHg and temperature in &decC
https://www.adafruit.com/products/391
I don't really care about altitude, but i would like to have the actual barometric pressure in inHg and temperature in &decC
- Thu Dec 06, 2012 12:57 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
Re: BMP085 barometric pressure/temperature sensor.
I should receive it on friday i will let you know!
- Thu Dec 06, 2012 12:34 am
- Forum: Flowcode V5
- Topic: BMP085 barometric pressure/temperature sensor.
- Replies: 23
- Views: 12967
BMP085 barometric pressure/temperature sensor.
Hi have just ordered this:
http://www.robotshop.com/productinfo.as ... lang=en-US
I would like to know if someone have already work with this and if there is any exemple on how to interface with it. Thanx a lot!
http://www.robotshop.com/productinfo.as ... lang=en-US
I would like to know if someone have already work with this and if there is any exemple on how to interface with it. Thanx a lot!
- Tue Nov 13, 2012 3:05 am
- Forum: Flowcode V5
- Topic: PID Dual Motor Control with PIC18F4685
- Replies: 4
- Views: 3854
Re: PID Dual Motor Control with PIC18F4685
Ok i have worked on this pretty hard and i think i have found a way to force the PID update 20 times per second, But now i got a LCD problem. i have done a choice from 1-4 each choice are different gLCD pages. Everything goes fine until i got into option 4, the graph is going pretty well all is good...
- Sun Nov 11, 2012 2:53 pm
- Forum: Flowcode V5
- Topic: PID Dual Motor Control with PIC18F4685
- Replies: 4
- Views: 3854
Re: PID Dual Motor Control with PIC18F4685
Yea, this is what i have done, but it only bring the pid update rate to 2 times per second, is it normal that the pid calculation, the adc read and the to duty cycle change slow down the chip like that?
- Sun Nov 11, 2012 2:21 am
- Forum: Flowcode V5
- Topic: PID Dual Motor Control with PIC18F4685
- Replies: 4
- Views: 3854
Re: PID Dual Motor Control with PIC18F4685
I have just made some more testing and have found that because of the LCD write command, the PID is running only once every second, Is this normal, As soon as i write 1 line on the LCD, The program loop only once a second. Is there anyway to use the uLCD-32PT without loosing too much speed on the pr...
- Sat Nov 10, 2012 3:48 pm
- Forum: Flowcode V5
- Topic: PID Dual Motor Control with PIC18F4685
- Replies: 4
- Views: 3854
PID Dual Motor Control with PIC18F4685
Hi everyone, i am trying to control 2 motor to keep the same speed with PID algorythm, But i got some problem, On the Flowchart i upload here, i try to update the PID 100 times per second, but i am pretty shure it is not doing it that often, right now at 100 times per second, i got about 106 encoder...
- Sat Nov 10, 2012 3:39 pm
- Forum: Flowcode V5
- Topic: PIC18F4685 RB0/INT0 & RB1/INT1 interrupt.
- Replies: 6
- Views: 4149
Re: PIC18F4685 RB0/INT0 & RB1/INT1 interrupt.
Thanx a lot Enamul, you are the man! and thanx to everyone who help on this forum, this is pretty awesome!! I am always impresed by all the help avaible here! This is what make flowcode so awesome!!
- Tue Nov 06, 2012 6:33 pm
- Forum: Flowcode V5
- Topic: PIC18F4685 RB0/INT0 & RB1/INT1 interrupt.
- Replies: 6
- Views: 4149
Re: PIC18F4685 RB0/INT0 & RB1/INT1 interrupt.
Ok and what is the option.reg for the rb1/int1?
- Tue Nov 06, 2012 2:54 pm
- Forum: Flowcode V5
- Topic: PIC18F4685 RB0/INT0 & RB1/INT1 interrupt.
- Replies: 6
- Views: 4149
PIC18F4685 RB0/INT0 & RB1/INT1 interrupt.
Is it possible to trigger the RB0/INT0 and RB1/INT1 interrupts on both rising edge and falling edge? Right now in flowcode i can only choose one or the other?
- Mon Nov 05, 2012 10:36 pm
- Forum: Flowcode V5
- Topic: PIC18F4685 2 PWM?
- Replies: 14
- Views: 9236
Re: PIC18F4685 2 PWM?
The Eccp can be used either normal pwm, or a bridge driver... Here is the code for eccp1 to use normal pwm via C code. //init pr2 = 99; //period to 99 t2con = 0x05; //tmr2 on prescaler to 4 //enable pwms ccp1con = 0x0C; // enable ccp1 eccp1con = 0x0C; //Enable eccp1 //Set the duty cycles ccpr1l = F...