Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Raspberry Pi

Questions tagged [pi4j]

Ask Question

Pi4J is a library for Java to use the GPIOs of the Raspberry Pi.

59 questions
Filter by
Sorted by
Tagged with
0votes
2answers
105views

I have a weird issue with receiving data over SPI - I'm always getting "old" data - the data from previous transmission, not the current one.I want to communicate between Raspberry and ...
mag_zbc's user avatar
0votes
1answer
132views

I want send data to/from Arduino Leonardo over SPI using wiringPi/pi4j on Raspberry, using custom GPIO as CS. Raspberry is supposed to be the master, and Arduino slaveFirst my setup:Raspberry Pi 3B...
1vote
0answers
44views

Hey all I have been looking at doing this for some time now. I ran across this posting and this is the type of led strip I am using. However, using that code seems to have errors when trying to add it ...
StealthRT's user avatar
2votes
2answers
436views

I can't seem to get the right pin number.Let's say I want to access this pin:What's the actual address of the pin? 11, 26 or what?Here's the code I use: (THIS CODE WORKS WITH PIN BCM 23)final ...
nexalbyte's user avatar
0votes
2answers
157views

My java app runs fine until I execute a System.exit(). I'm using pi4j/pigpio-2.2.1 on a Pi4b with latest raspian OS. I use DigitalOutput to define my own DigitalOutputPin and I2C for some Sparkfun ...
RonH's user avatar
0votes
1answer
141views

I am trying to get the Pi4J library to work on my Raspberry Pi 4. I just wrote a simple blink program. It is not toggling the pin as it should be.Here is the simple program. I have compiled it, and ...
Andrew's user avatar
0votes
1answer
278views

I want to use THIS sample in my project.But its library is for pi4j version 1 and I use the pi4j version 2.I searched and I didn't find any sample for PCA9685 with pi4j2.Is there anyone who can ...
Reza Gholipour's user avatar
0votes
0answers
196views

I am trying to use my Raspberry Pi 4's GPIOs to turn on various thing in my smart home.I am getting 2.6V on the GPIO Input, thus resulting in a HIGH signal. I have confirmed this with a basic python ...
Dahlin's user avatar
0votes
0answers
228views

I am so new to Raspberry Pi. I want to use pi4j 2 to flash a led that is connected to a raspberry pi. This is my code but the led does not turn on at all:import com.pi4j.Pi4J;import com.pi4j.io.gpio....
Reza Gholipour's user avatar
0votes
1answer
241views

I have a raspberry pi 4 B and I want to control servo motor. I am using NetBeans IDE and Java programming language with pi4j library for raspberry. Also I have a servo motor that can rotate for 300 ...
crackanddie's user avatar
0votes
0answers
179views

I am trying to use a joystick with a MCP3008 in the middle (Connected to GPIO8 - SPI CS0) but I get following error:Exception in thread "main" java.lang.reflect.InvocationTargetException...
osumatu's user avatar
0votes
0answers
113views

I have a raspberry pi 2 and an 8 module relay board (http://nettop.gr/index.php/en/hlektronika/relay/8-channel-5v-relay-module-with-light-coupling-5v.html).Between the relay board and the raspberry I ...
Investigator's user avatar
1vote
2answers
3kviews

I am basically trying to turn on a led by using pi4j library. My code is pretty simple:public static void main(String args[]) throws InterruptedException { GpioController gpioController = ...
osumatu's user avatar
4votes
1answer
7kviews

For reference:I am using the latest release Pi OS Lite, Aug 2020 version.I am developing an application using Pi4J.I am referring to pins via this Pinout: Pin Numbering - Raspberry Pi 3B+I am ...
MountainPi's user avatar
2votes
1answer
572views

I am trying to get a led working with the Raspberry Pin 3 model B+ with Raspbian. I am using Java Pi4j library this way:GpioPinDigitalOutput digitalOutputPin = GpioFactory.getInstance()....
MABC's user avatar
  • 123

153050per page
1
234

Hot Network Questions

more hot questions
Newest pi4j questions feed

[8]ページ先頭

©2009-2025 Movatter.jp