arduino display

More
23 Aug 2013 20:20 #38000 by billykid
Replied by billykid on topic arduino display
hi
I think the problem is the different library.
I'll have to take the i2c backpack that you've used
but just programmed should display something or only when connected to serialcon?
rx led blink every few seconds, but do not see anything on the display.
regards
Mauro

Please Log in or Create an account to join the conversation.

More
23 Aug 2013 21:44 #38004 by ArcEye
Replied by ArcEye on topic arduino display
Hi

I think you need to do some reading on Arduino scripts and run something that will display to your LCD, to test it

Then you can try out the pendant programs.

The answer to your question is in the 2 pieces of code, but you will have to put some time in to understand it, or you will just go from question to question without learning anything.

regards
The following user(s) said Thank You: billykid

Please Log in or Create an account to join the conversation.

More
23 Aug 2013 22:05 - 23 Aug 2013 22:07 #38005 by billykid
Replied by billykid on topic arduino display
hi
first of all thanks for your patience, I am sending you this example working perfectly in my display.
I had to use this library to my backpack PCF8574A
best regards
Mauro
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

uint8_t bell[8] = {0x4,0xe,0xe,0xe,0x1f,0x0,0x4};
uint8_t note[8] = {0x2,0x3,0x2,0xe,0x1e,0xc,0x0};
uint8_t clock[8] = {0x0,0xe,0x15,0x17,0x11,0xe,0x0};
uint8_t heart[8] = {0x0,0xa,0x1f,0x1f,0xe,0x4,0x0};
uint8_t duck[8] = {0x0,0xc,0x1d,0xf,0xf,0x6,0x0};
uint8_t check[8] = {0x0,0x1,0x3,0x16,0x1c,0x8,0x0};
uint8_t cross[8] = {0x0,0x1b,0xe,0x4,0xe,0x1b,0x0};
uint8_t retarrow[8] = { 0x1,0x1,0x5,0x9,0x1f,0x8,0x4};

LiquidCrystal_I2C lcd(0x38,20,4); // set the LCD address to 0x38 for a 20 chars and 4 line display

void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();

lcd.createChar(0, bell);
lcd.createChar(1, note);
lcd.createChar(2, clock);
lcd.createChar(3, heart);
lcd.createChar(4, duck);
lcd.createChar(5, check);
lcd.createChar(6, cross);
lcd.createChar(7, retarrow);
lcd.home();

lcd.print("Hello world...");
lcd.setCursor(0, 1);
lcd.print(" i ");
lcd.write(3);
lcd.print(" arduinos!");
delay(5000);
displayKeyCodes();

}

// display all keycodes
void displayKeyCodes(void) {
uint8_t i = 0;
while (1) {
lcd.clear();
lcd.print("Codes 0x"); lcd.print(i, HEX);
lcd.print("-0x"); lcd.print(i+16, HEX);
lcd.setCursor(0, 1);
for (int j=0; j<16; j++) {
lcd.write(i+j);
}
i+=16;

delay(4000);
}
}

void loop()
{

}
Last edit: 23 Aug 2013 22:07 by billykid.

Please Log in or Create an account to join the conversation.

More
24 Aug 2013 04:51 #38018 by billykid
Replied by billykid on topic arduino display
done! replaced lcd.begin () with lcd.init () and everything works!
I added A axes and removed the code of the buttons.
works very well great job
best regards
Mauro

Please Log in or Create an account to join the conversation.

More
27 Aug 2013 03:54 #38126 by billykid
Replied by billykid on topic arduino display
hello, now everything is running on LinuxCNC 2.5.3.
but on the master-rt 2.6.0 does not want to work ..
serialcon is loaded, it will be a different port number?
regards
Mauro

Please Log in or Create an account to join the conversation.

More
27 Aug 2013 15:42 #38136 by ArcEye
Replied by ArcEye on topic arduino display

serialcon is loaded, it will be a different port number?


It will be whatever port you used to upload the script to the arduino.

They do not all use the same one and if you have another device connected that could affect it too

Change the line
#define DEVICE /dev/ttyUSB0

to match which port you are using

regards

Please Log in or Create an account to join the conversation.

More
28 Aug 2013 03:04 #38169 by billykid
Replied by billykid on topic arduino display
arduino sees acm0, tty0, ttyUSB0. i used ttyUSB0 for upload arduino.
I think I have all the permits but does not work :-(
the same machine, same hardware with LinuxCNC 2.5.3 work ...
regards
Mauro

Please Log in or Create an account to join the conversation.

More
28 Aug 2013 14:56 #38180 by ArcEye
Replied by ArcEye on topic arduino display
Since it all worked with 2.5.3, you need to replicate the same steps for the master (if you need to use it at all - what is in the master that is not in 2.5.3 do you need?)

I have no idea if you are running a RIP installation, the most likely thing that occurs if you are, is that you have not re-compiled and it is just not present.

If you are using an installed build, most likely is that you are running a driver compiled on 2.5.3 on 2.6.

Please Log in or Create an account to join the conversation.

More
28 Aug 2013 19:00 #38188 by billykid
Replied by billykid on topic arduino display
hello, I wanted to use 2.6.0 because I'm using this on cnc and I feel good.
I am interested remap m6 probe with tool change.
the strange thing is that I put a new hard disk instead of 2.5.3, installed master_rt, LinuxCNC-dev serialcon compiled, installed ... nothing.
I'll do other tests calmly, I will not make you too many questions, you've been very kind.
regards
Mauro

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum