Project of the Month built by mayhugh1

Help Support Home Model Engine Machinist by donating using the link above or becoming a Supporting Member.
Home Model Engine Machinist > CNC and 3-D Printers > Software and Programming > Tips for Arduno software for Rotary Table Controllers

Reply
 
Thread Tools
Old 08-30-2017, 08:55 AM   #261
sns5400
 
Join Date: Apr 2013
Posts: 3
Default

Hello,
This look fine but, i try to compile this for the arduino uno, and get a error missing Boolfield.h can i find this somewhere ?


sns5400 is offline  
 
Reply With Quote
Old 08-30-2017, 09:10 AM   #262
rodw
 
Join Date: Dec 2012
Posts: 1,025
Liked 306 Times on 239 Posts
Likes Given: 157

Default

Quote:
Originally Posted by sns5400 View Post
Hello,
This look fine but, i try to compile this for the arduino uno, and get a error missing Boolfield.h can i find this somewhere ?
That file is part of the LCD library. PLease start again on this thread.
http://www.homemodelenginemachinist....ad.php?t=25091
Make sure you read it all and update the procedure as per my post near the end of the thread.


__________________
RodW
Brisbane, Australia
vehiclemods.net.au
rodw is offline  
xpylonracer Likes This 
Reply With Quote
Old 08-31-2017, 05:51 AM   #263
sns5400
 
Join Date: Apr 2013
Posts: 3
Default Very good startpoint to go but now button problem

This is the good point to start and download the code but....
After compile and upload the code in arduino uno, now i have only one button, (right) works ?

Any suggestion ?


Start point:
http://www.homemodelenginemachinist....ad.php?t=25091
sns5400 is offline  
 
Reply With Quote
Old 08-31-2017, 09:17 AM   #264
rodw
 
Join Date: Dec 2012
Posts: 1,025
Liked 306 Times on 239 Posts
Likes Given: 157

Default

Quote:
Originally Posted by sns5400 View Post
This is the good point to start and download the code but....
After compile and upload the code in arduino uno, now i have only one button, (right) works ?

Any suggestion ?


Start point:
http://www.homemodelenginemachinist....ad.php?t=25091
You have just learnt that nothing on the Arduino is plug and play

I would say your LCD/keyboard shield is not compatible with the Freetronics hardware this was designed for. If you go to www.freetronics.com.au you should find the resistor values they use for the keyboard together with examples that show the cutoff values for each button. Then compare the values with your hardware. If you go through this thread, you will find an example how another member modified the library code for different hardware.

Or you could take the easy way out and order a freetronics shield.
__________________
RodW
Brisbane, Australia
vehiclemods.net.au
rodw is offline  
 
Reply With Quote
Old 09-01-2017, 03:30 PM   #265
sns5400
 
Join Date: Apr 2013
Posts: 3
Default

Hello,
i have the same problem, of my keys only right button work.
Its a robot shield with 6 button.

Is it possible to upload your LCD.cpp file

Thank in advance

Pieter
sns5400 is offline  
 
Reply With Quote
Old 09-01-2017, 04:16 PM   #266
Foozer
HMEM_LIFETIMESUPPORTER.png
 
Join Date: Nov 2008
Location: Camano Island, WA
Posts: 1,098
Liked 71 Times on 64 Posts
Likes Given: 2

Default

Quote:
Originally Posted by sns5400 View Post
Hello,
i have the same problem, of my keys only right button work.
Its a robot shield with 6 button.
Pieter
DFRobot? Two versions different return values .
From their info page . . .
if (adc_key_in > 1000) return btnNONE; // For V1.1 us this threshold if (adc_key_in < 50) return btnRIGHT; if (adc_key_in < 250) return btnUP; if (adc_key_in < 450) return btnDOWN; if (adc_key_in < 650) return btnLEFT; if (adc_key_in < 850) return btnSELECT; // For V1.0 comment the other threshold and use the one below: /* if (adc_key_in < 50) return btnRIGHT; if (adc_key_in < 195) return btnUP; if (adc_key_in < 380) return btnDOWN; if (adc_key_in < 555) return btnLEFT; if (adc_key_in < 790) return btnSELECT; */


__________________
"Nothing is more irritating than that which exposes the pedigree of ideas"----Lord Acton----
Foozer is offline  
 
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotary Table Fix cfellows Tools 12 08-13-2013 06:09 PM
Rotary Table -- What Do I Need To Know? Jeremy_BP Tools 10 01-17-2012 02:42 PM
Rotary table for my X2 tmuir Tools 16 02-03-2010 09:40 AM
X2 table dissassembly tips wanted tmuir General Engine Discussion 3 05-14-2009 11:43 PM
Rotary table Julian Tips and Tricks 3 11-04-2007 07:01 PM



Newest Threads






- Top - Member List