Search found 36 matches

by stephenmccarthy
Fri Apr 15, 2011 11:05 pm
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

Hello Martin, Sorry i must have posted the wrong code, i've kept different version of the same code as it evolved, sorry about that. I also tested timer1 on my own circuit board and it appears ok. I am however using a twelve meg crystal and Ive just realised i may have soldered it too close to the b...
by stephenmccarthy
Thu Apr 14, 2011 11:53 pm
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

Hello martin And thanks for going through the trouble of altering the code, im going to download it to my development board shortly, Ive also made a few changes to my original code now I am using timer1 and i have taken out the loop and calling the two macros from with in it completely. Also i decre...
by stephenmccarthy
Thu Apr 14, 2011 2:45 pm
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

I am just going to look at my code again and try make the appropiate changes and impliment the check for update in to it. I'll keep a look out for the wrning you told me to watch for too and let you know how it goes.

Thanks
Stephen
by stephenmccarthy
Thu Apr 14, 2011 9:44 am
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

Hello martin Thanks for your reply, if i called "heart_beat_calc" and "display_value" from outside the loop in the main program do you think this would help? Also yes i understand what you mean about the timing being off, unfortunately at the time of designing my code i only had ...
by stephenmccarthy
Wed Apr 13, 2011 3:37 pm
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

Hello Ben, yes that seems to be the case, for example i place my finger between the sensor and it can go from 64 to 130 to 250 and when i remove my finger the value will return to 0. As for your solution, do you recommend i use the new variable too actually display the BPM on the display? Thanks aga...
by stephenmccarthy
Wed Apr 13, 2011 12:24 pm
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

Hi, Yes I had the count variable set to a byte, stupuidly i just realised this wont count passed 255 so i changed it to an interger. I think I have been looking at this code too long. A can now get a long enought interupt to allow me to multiply my variable by 6 to get an average BPM. the only probl...
by stephenmccarthy
Wed Apr 13, 2011 11:30 am
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

Hello Ben, Thanks for clearing that up for me, and yes you are corrct about multiplying values as this is also an issue with my code, how ever the count will not let me count higher then 255 in an if statement and with an interupt frequency of 45.776Hz, I am not sure how to get around this issue? Th...
by stephenmccarthy
Wed Apr 13, 2011 10:10 am
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Re: Using interrupt for 10 seconds

Hi, ben and thanks for your reply i do not think i can let the count variable count as far as 1500 because the pre scaller on the interrupt is 1:256 so anything over 255 and the count seem to time out and not show data on the lcd? Am i correct in thinking this? I am just thinking now that if i made ...
by stephenmccarthy
Wed Apr 13, 2011 9:26 am
Forum: Flowcode V4
Topic: Using interrupt for 10 seconds
Replies: 16
Views: 8893

Using interrupt for 10 seconds

Hi lads, I've attached my code and hope i can get some quick help with the following problem. In my code I am using two interupts the first to call the int_counter macro which is set to make 150 counts the second to call the input_rb0 maco. I am using a 12MHz crystal. My problem is i do not know how...
by stephenmccarthy
Fri Mar 25, 2011 2:09 pm
Forum: E-blocks
Topic: Connecting bluetooth and lcd eblocks to a PCB
Replies: 8
Views: 7226

Re: Connecting bluetooth and lcd eblocks to a PCB

Hi Ben, I have actually went through the recommended documents thoroughly. So i was quite confused with the problem, however it seems that i have to occasionally reprogram the Bluetooth module on the multiprogrammer again with the example 1 program. Then reprogram it with my project program for it t...
by stephenmccarthy
Thu Mar 24, 2011 10:47 am
Forum: E-blocks
Topic: Connecting bluetooth and lcd eblocks to a PCB
Replies: 8
Views: 7226

Re: Connecting bluetooth and lcd eblocks to a PCB

Hi Ben, I adjusted the clock speed to 12000000 and i can connect to hyperterm but now it will not print messages or values? any idea where i might have gone wrong? I have not looked at flowcode in a few days because I have been designing the PCB for the micro and sensor. Is there any other setting b...
by stephenmccarthy
Fri Mar 18, 2011 4:51 pm
Forum: E-blocks
Topic: Connecting bluetooth and lcd eblocks to a PCB
Replies: 8
Views: 7226

Re: Connecting bluetooth and lcd eblocks to a PCB

Hi lads, I solved the problem, it was that I tought the 18f448 had an internal crystal also i did not use the pull up resistor or tie mclr to high, so I adjusted my code to allow me use an external crystal, I know have a 12Mhz crystal tied to pin 13 and 14. Now both my LCD and Bluetooth work with th...
by stephenmccarthy
Fri Mar 18, 2011 12:04 pm
Forum: E-blocks
Topic: Connecting bluetooth and lcd eblocks to a PCB
Replies: 8
Views: 7226

Re: Connecting bluetooth and lcd eblocks to a PCB

Hi guys, Hi Jan. Yes, I've ran 13.5 volts to my breadboard from a psu and passed this to the de7805 regulator, i have the micro powered by this and also connected both eblocks to this power. The bluetooth dongle will acknowledge a com port to the bluetooth eblock when it is powered but will not conn...
by stephenmccarthy
Thu Mar 17, 2011 1:53 pm
Forum: E-blocks
Topic: Connecting bluetooth and lcd eblocks to a PCB
Replies: 8
Views: 7226

Connecting bluetooth and lcd eblocks to a PCB

Hi guys, I'm using an 18f448 to calculates a BPM value and send it to the LCD and then to hyperterminal via bluetooth. Everything works pretty well on eblocks, So my problem now is when I put my 18f448 on the breadboard and power it. Connect the appropiate pins to a female serial ports that I wired ...
by stephenmccarthy
Tue Mar 15, 2011 2:01 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben Thanks yet again for another quick reply, I just downloaded your updated code and cleaned up the send command and now it works. Thanks very much for your time, there is no way I would have managed to get the bluetooth component working with your help, I will keep this thread up to date on the...
by stephenmccarthy
Tue Mar 15, 2011 12:56 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben, I just seen your reply, I actually tried somnething similar to what you outlined , last night, But I was not succesful. I even tried shouting at it...... this didnt work either :) I noticed the bluetooth is very sensitive to the send command if i set it up in a way it dosent like it will ref...
by stephenmccarthy
Mon Mar 14, 2011 3:29 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben,

Thanks for the reply, I have converted my value to a string, however i cannot find parameter in the bluetooth macro that accepts strings? Am i missing something?
As far as I know string receive and string send is the correct way too send strings.

Thanks,
Stephen
by stephenmccarthy
Mon Mar 14, 2011 12:44 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben, I have a set up the Bluetooth and i can now communicate with hyperterm i can send a message to hyper term saying ""YOUR_HEART_RATE=" followed by the BPM value, the problem is instead of printing a number it prints a symbol i.e instead of "YOUR_HEART_RATE=6" it prints...
by stephenmccarthy
Fri Mar 11, 2011 6:18 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben, Yes I tried the other COM port it connects, but i dont think to the bluetooth component as the LED on the component does not light. The first thing i done to my code was include a bluetooth initilize command, followed by send script 1. It works it allowed a conection. Funnnily enough i just ...
by stephenmccarthy
Fri Mar 11, 2011 4:05 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi, David thanks for sorting out this thread for me, Ben thanks for the reply, I am just wondering that if for what i want to accomplish should I have to fiddle with the AT commands in the bluetooth macro as I am able to connect my code to hyperterm but hyperterm has never responded to commands, lik...
by stephenmccarthy
Thu Mar 10, 2011 12:37 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben, Thanks for the fast reply, I'm going to try make some progress today and implement the bluetooth macro into my flowcode, I have one question about the macro, do i have to set what port I am going to use it on? and if so how? as in the examples it is used on port C although i cant see where t...
by stephenmccarthy
Thu Mar 10, 2011 1:09 am
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi ben, I've been looking at the code and hyperterminal since I came home from work, now it lets me connect exercise2 and lets me alter configuration on the COM port before i connect which it didnt do before, taking this as a positive I went ahead and removed the bluetooth macros in the link you sen...
by stephenmccarthy
Wed Mar 09, 2011 6:07 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben, Yes the baud rate on the rs232 seems to be correct, also the clock speed 19660800hz seems to match the hardware, or I am assuming it does as my other flowcode programs during the year have worked with this clock speed. I think you may be correct about volatile memory on the bluetooth device,...
by stephenmccarthy
Wed Mar 09, 2011 2:19 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi Ben, I uninstalled and reinstalled the ezuruio bluetooth device, this changed my COM port to port 7 and the hyper terminal did not ask me for a pairing key this time when i connected example one code, also the LED on board the bluetooth module lit up. Again I disconnected from hyper terminal, ope...
by stephenmccarthy
Tue Mar 08, 2011 6:31 pm
Forum: Flowcode V4
Topic: bluetooth eblock connection
Replies: 34
Views: 21998

Re: bluetooth eblock connection

Hi ben, Yes I done the example 1 program, i try to connect and i am asked for a pairing key, once connected i can enter text to hyperterminal that will show on the lcd. However it does not rspond to commands, AT does not return OK for example. I've actually been working off the link you just posted....