Arduino success!

Karl W4KRL W4KRL at arrl.net
Wed Mar 20 14:05:52 CDT 2013


Alex,

 

I am using the UNO. Buy it assembled for less that $20 at Micro Center
(sometimes on sale for $15). Higher cost at Radio Shack. Check out my video
at http://www.youtube.com/watch?v=IBUW6kSRxkk Part 2 status update coming in
a day or so.

 

73 Karl W4KRL

 

From: Alex Fraser [mailto:beatnic at comcast.net] 
Sent: Wednesday, March 20, 2013 11:18 AM
To: tacos AMRAD
Subject: Re: Arduino success!

 

Karl,

 Which Arduino board did you use?  

Karl W4KRL wrote: 



Tacoistas,

 

Thanks for all the help you have given me with the problem I ran into on my
Arduino touch screen display. 

 

Every piece of my code worked perfectly when I ran it under test conditions.
When I put it all together the screen would detect touches but the display
would not update. I blamed my lack of C++ knowledge, the compiler, and the
cheap eBay product.

 

Today I completely rewrote the program without using object oriented
features. Once again I could place multiple buttons on the screen and detect
that they were being touched but the screen would not change in response to
code. 

 

I was showing the problem to my son and explaining what each part did. As
soon as we got to the part that uses two analog pins for both touch screen
detection and LCD control I realized that the touch screen should release
the pins for LCD control as soon as a touch was detected otherwise the LCD
would not respond to commands. Adding two lines of code to the touch
detection function made everything work! (Even the object oriented program.)


 

Lesson learned: correctly control your hardware!

 

Next step: interface with the miniVNA.

 

73 Karl W4KRL

 

 






_______________________________________________
Tacos mailing list
Tacos at amrad.org
https://amrad.org/mailman/listinfo/tacos






-- 
   \\\\\\\\\\\\\\\\-----++++*0*++++-----//////////////////
<file:///\\\-----++++*0*++++-----\> 
       No electrons were harmed in the creation of this message
         --------------------------------------------------------
 ~~~********************Alex Fraser********************~~~
         --------------------------------------------------------
[[[[[[~~^^^#___=>>>```/\/\**O**/\/\```<<<=___#^^^~~]]]]]]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://amrad.org/pipermail/tacos/attachments/20130320/e568be34/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 569 bytes
Desc: not available
URL: <http://amrad.org/pipermail/tacos/attachments/20130320/e568be34/attachment-0001.gif>


More information about the Tacos mailing list