Go to advanced search

by WalterHeisenberg
Mon Jul 30, 2018 2:11 am
Forum: Java
Topic: PI4J + Adafruit LCD with MCP23017
Replies: 8
Views: 2001

Re: PI4J + Adafruit LCD with MCP23017

Looks like I found the issue. was: LCD lcd = new I2CLcdDisplay(2, 16, 1, 20, 0, 15, 14, 13, 9, 6, 11, 12); now: LCD lcd = new I2CLcdDisplay(2, 16, 1, 0x20, 0, 15, 14, 13, 9, 10, 11, 12); Trying to print something with no reaction.. lcd.clear(); lcd.write(0, "111 "); lcd.write(1, "222"); Update 1: I ...
by WalterHeisenberg
Sun Jul 29, 2018 6:16 pm
Forum: Java
Topic: PI4J + Adafruit LCD with MCP23017
Replies: 8
Views: 2001

Re: PI4J + Adafruit LCD with MCP23017

Your example https://raw.githubusercontent.com/Pi4J/ ... ample.java is not working for me.

I got just a message
<--Pi4J--> Wiring Pi LCD test program
in output and nothing else. Lcd didnt change the state.
by WalterHeisenberg
Sun Jul 29, 2018 6:10 pm
Forum: Java
Topic: PI4J + Adafruit LCD with MCP23017
Replies: 8
Views: 2001

Re: PI4J + Adafruit LCD with MCP23017

I already said: Trying to work with LCD LCD lcd = new I2CLcdDisplay(2, 16, 1, 20, 0, 15, 14, 13, 9, 6, 11, 12); Result: java.io.IOException: Input/output error at java.io.RandomAccessFile.write0(Native Method) ~[na:1.8.0_65] at java.io.RandomAccessFile.write(RandomAccessFile.java:489) ~[na:1.8.0_65]...
by WalterHeisenberg
Sun Jul 29, 2018 5:54 pm
Forum: Java
Topic: PI4J + Adafruit LCD with MCP23017
Replies: 8
Views: 2001

Re: PI4J + Adafruit LCD with MCP23017

DougieLawson wrote:
Sun Jul 29, 2018 4:49 pm
whole Pi4J Java program

What are you talking about?
This is whole java program. "public static void main" + 2 lines I provided. What else do you need? Sources of pi4j?
by WalterHeisenberg
Sun Jul 29, 2018 2:42 pm
Forum: Java
Topic: PI4J + Adafruit LCD with MCP23017
Replies: 8
Views: 2001

Re: PI4J + Adafruit LCD with MCP23017

DougieLawson wrote:
Sun Jul 29, 2018 11:16 am
Can you post your Display.java source code (in [code][/code] tags) or tell us where you found it?
See first code block in my post.
Line 22 from stacktrace is the first line

Code: Select all

LCD lcd = new I2CLcdDisplay(2, 16, 1, 20,   0, 15, 14, 13, 9, 6, 11, 12);
 
by WalterHeisenberg
Sun Jul 29, 2018 6:18 am
Forum: Java
Topic: PI4J + Adafruit LCD with MCP23017
Replies: 8
Views: 2001

PI4J + Adafruit LCD with MCP23017

Trying to work with LCD but looks like Im doing something wrong. LCD lcd = new I2CLcdDisplay(2, 16, 1, 20, 0, 15, 14, 13, 9, 6, 11, 12); lcd.clear(); Got values from python example: # Char LCD plate GPIO numbers. LCD_PLATE_RS = 15 LCD_PLATE_RW = 14 LCD_PLATE_EN = 13 LCD_PLATE_D4 = 12 LCD_PLATE_D5 = ...
by WalterHeisenberg
Mon May 14, 2018 9:15 pm
Forum: General discussion
Topic: Relay <-> Sprinkler Valve
Replies: 5
Views: 474

Re: Relay <-> Sprinkler Valve

Ok. Got it.
Looks like i need something like 3V relays
by WalterHeisenberg
Mon May 14, 2018 6:43 pm
Forum: General discussion
Topic: Relay <-> Sprinkler Valve
Replies: 5
Views: 474

Re: Relay <-> Sprinkler Valve

It is specified to work with the Arduino which outputs a wider swing (5V) vs the RPi (3.3v)
What did you mean?
We have 5V on RPi, isnt?
RPi gpio.PNG
RPi gpio.PNG (149.95 KiB) Viewed 425 times
by WalterHeisenberg
Mon May 14, 2018 6:29 pm
Forum: General discussion
Topic: Relay <-> Sprinkler Valve
Replies: 5
Views: 474

Re: Relay <-> Sprinkler Valve

Well, it was stupid question where to get 24V if I have only 5V on RPi. I figured out later how it should be.
256cbd38df17ef2dc2aa55c0449d7614c23bf2b0.png
256cbd38df17ef2dc2aa55c0449d7614c23bf2b0.png (4.34 KiB) Viewed 430 times
solid state relay modules
I will check this. Thanks
by WalterHeisenberg
Sat May 12, 2018 7:58 pm
Forum: General discussion
Topic: Relay <-> Sprinkler Valve
Replies: 5
Views: 474

Relay <-> Sprinkler Valve

Im thinking about irrigation system. So have a stupid question… Can I connect sprinkler valve via VMA406 (going to use VMA400 later)? Sprinkler valve has the following in the spec: Voltage: 24 VAC 50/60 Hz Would like to have raspberry pi + java as controller but the question for about connection bet...

Go to advanced search