making phone need help
Moderator: Benj
making phone need help
Well i'm that same guy who asked help early this week this phone making. So i have done phone v1 i and it doesn't work that well i excepted it doesn't let me go to menu. And i need you guys help.
- Attachments
-
- phone v1.fcfx
- (17.97 KiB) Downloaded 336 times
Re: making phone need help
Hi GamerXbot
Heres a few pointers to your chart,
The keypad is numbered 0 to 11 ,so change your decisions from 12 to 11( * button is number 10,as the 0 button is number 0, the # button is number 11 ,also add a clearscreen above the connection point b in those decisions ,as this will show during simulation that the # key is responding.
Remember once you send the flowchart to a loop as a result of a key press, it will only carry out instructions inside that loop, think about how it can read keypresses.
Again once it exits a loop it returns to main loop, so have a think what happens when you ask it to go into sub menu's ie once its in the 123 menu, you need to tell it what to do.
not sure if you realise but if you slow down the sim by adjusting the speed in the sim debugger, you can add variables to watch, look at the debugger you will see the word Expression greyed out, move your mouse pointer to the left of the word ,a drop down arrow will appear , now simply right click the arrow.
A box will appear saying add variable, click it and add all your variables. rerun the simulation, now when you press a button or a variable changes you will see it, this is handy as say you have gone into the 123 menu and you want to input a phone number hold down a number and watch the flowchart as it steps through, this will enable you to follow the chart and see exactly what happens, if you make it as slow as poss , you have more time as its a delayed single step.
see how you get on
Hope it helps
Regards
Dazz
Heres a few pointers to your chart,
The keypad is numbered 0 to 11 ,so change your decisions from 12 to 11( * button is number 10,as the 0 button is number 0, the # button is number 11 ,also add a clearscreen above the connection point b in those decisions ,as this will show during simulation that the # key is responding.
Remember once you send the flowchart to a loop as a result of a key press, it will only carry out instructions inside that loop, think about how it can read keypresses.
Again once it exits a loop it returns to main loop, so have a think what happens when you ask it to go into sub menu's ie once its in the 123 menu, you need to tell it what to do.
not sure if you realise but if you slow down the sim by adjusting the speed in the sim debugger, you can add variables to watch, look at the debugger you will see the word Expression greyed out, move your mouse pointer to the left of the word ,a drop down arrow will appear , now simply right click the arrow.
A box will appear saying add variable, click it and add all your variables. rerun the simulation, now when you press a button or a variable changes you will see it, this is handy as say you have gone into the 123 menu and you want to input a phone number hold down a number and watch the flowchart as it steps through, this will enable you to follow the chart and see exactly what happens, if you make it as slow as poss , you have more time as its a delayed single step.
see how you get on
Hope it helps
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php
Re: making phone need help
Hello Dazz
How i can get that go into loop while? I doesn't know how im gonna do it. When i press 9 it should go to loop but it doesn't do it.
GamerXbot
How i can get that go into loop while? I doesn't know how im gonna do it. When i press 9 it should go to loop but it doesn't do it.
GamerXbot
- Attachments
-
- phone v2.fcfx
- (17.97 KiB) Downloaded 305 times
Re: making phone need help
Hello guys, i got an idea, is there possibilities to do a real time clock on glcd? I would like to put the clock time to the up right corner of Graphical lcd-display.
It should only show hours and minutes not seconds. Does the pic have enough memory?
Thanks
It should only show hours and minutes not seconds. Does the pic have enough memory?
Thanks
Re: making phone need help
HI
If you slow simulation down and add the buttons variable to the watch window, you will see every button press and what the chart reaction is, What is happening is when you press the 9 button it goes to the menu as requested but then sits in that menu, what is happening is its going into your menu loop but as the previous key press is still stored it cannot ,do anything, the answer is to add another get number macro, between your macro to print "to goto menu" and your if button=10 decition
Hope that helps
Regards
Dazz
If you slow simulation down and add the buttons variable to the watch window, you will see every button press and what the chart reaction is, What is happening is when you press the 9 button it goes to the menu as requested but then sits in that menu, what is happening is its going into your menu loop but as the previous key press is still stored it cannot ,do anything, the answer is to add another get number macro, between your macro to print "to goto menu" and your if button=10 decition
Hope that helps
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php
Re: making phone need help
Hello guys
I'm now trying to do text message that work with numbers like old school Nokia
Well my friend told me i should do text with using strings and that calculation should do example: number_one [1] = 0 + 1 + 1 = A, B, C
Well i'm stuck with that it put there 255 and i don't understand where it comes there
Help is very helpful to me and my friend so could someone explain that to us
I know that slowing down simulation helps me find the error lots easier
Here is my phone v3
GamerXbot
I'm now trying to do text message that work with numbers like old school Nokia
Well my friend told me i should do text with using strings and that calculation should do example: number_one [1] = 0 + 1 + 1 = A, B, C
Well i'm stuck with that it put there 255 and i don't understand where it comes there
Help is very helpful to me and my friend so could someone explain that to us
I know that slowing down simulation helps me find the error lots easier
Here is my phone v3
GamerXbot
- Attachments
-
- phone v3.fcfx
- (28.74 KiB) Downloaded 345 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: making phone need help
Hi GamerXbot,
I may have a solution for you?
Take a look at this topic
keypad2.fcf would probably be the better one as it acts more like a mobile would
To import a V5 Flowchart in to V6 just select open, then change in the drop down box to
Note: Since it was designed with Flowcode V5, it won't simulate as well.
Should be fine with hardware.
Martin
I may have a solution for you?
Take a look at this topic
keypad2.fcf would probably be the better one as it acts more like a mobile would
To import a V5 Flowchart in to V6 just select open, then change
Code: Select all
Flowcode project files (*.fcfx)
Code: Select all
Flowcode for PIC files (*.fcf)
Should be fine with hardware.
Martin
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: making phone need help
As you have flowcode V6, I have modified flowchart so it simulates better.
This version will not work well on hardware.
Martin
This version will not work well on hardware.
Martin
- Attachments
-
- keypad2_v6 simulation only.fcfx
- (18.5 KiB) Downloaded 279 times
Martin
Re: making phone need help
Hi medelec35
I just realize that what you have done. Well it really nice but how i'm gonna put that graphical lcd?
GamerXbot
I just realize that what you have done. Well it really nice but how i'm gonna put that graphical lcd?
GamerXbot
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: making phone need help
Hi GamerXbot,
The flowchart that I posted a link to is to demonstrate how to convert keypad press into corresponding letters as they would on a phone.
As for gLCD, If you follow the way it's done for LCD then conversion to gLCD should be doable.
Have a play and see how you get on.
After that if you're still stuck then post flowchart and I can see if i can assist you further.
Martin
The flowchart that I posted a link to is to demonstrate how to convert keypad press into corresponding letters as they would on a phone.
As for gLCD, If you follow the way it's done for LCD then conversion to gLCD should be doable.
Have a play and see how you get on.
After that if you're still stuck then post flowchart and I can see if i can assist you further.
Martin
Martin
Re: making phone need help
Hello
I wanted to test my phone v3 on inreal life microcontroller but Graphical lcd won´t start and show screen some weird reason.
Can someone explain reason why it doesn´t work.
phone v3 is little bit upgraded version only new thing is button what i thinked to use as send button
GamerXbot
I wanted to test my phone v3 on inreal life microcontroller but Graphical lcd won´t start and show screen some weird reason.
Can someone explain reason why it doesn´t work.
phone v3 is little bit upgraded version only new thing is button what i thinked to use as send button
GamerXbot
- Attachments
-
- phone v3.fcfx
- (36.8 KiB) Downloaded 292 times
Re: making phone need help
Hello
Is there any possibilities to make gsm work without RS232 eblock?
GamerXbot
Is there any possibilities to make gsm work without RS232 eblock?
GamerXbot
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: making phone need help
Hi GamerXbot,
Also you have got initilised variables which will be assigned with a random number.
This will give you unexpected results.
Martin
You have not got a gLCD initilise component macro on your flowchart.GamerXbot wrote: Graphical lcd won´t start and show screen some weird reason.
Also you have got initilised variables which will be assigned with a random number.
This will give you unexpected results.
Martin
Martin
Re: making phone need help
Hello
I cant get my phone done because i cant find problem on my code. I was trying to play audio file from sd card but i cant hear it.
I have been read all topics about this and resolved part too but still it wont play audio file. Please put your fixed version to me so i can test it if its eb076 broken.
play audio value is 0 and voice 127
GamerXbot
I cant get my phone done because i cant find problem on my code. I was trying to play audio file from sd card but i cant hear it.
I have been read all topics about this and resolved part too but still it wont play audio file. Please put your fixed version to me so i can test it if its eb076 broken.
play audio value is 0 and voice 127
GamerXbot
- Attachments
-
- phone v5.fcfx
- (42.2 KiB) Downloaded 223 times