Go to advanced search

by mpatronska
Mon Nov 14, 2016 9:19 pm
Forum: Raspberry Pi OS
Topic: [Script] Push your Pi's IP address to your phone
Replies: 13
Views: 7670

Re: [Script] Push your Pi's IP address to your phone

Hi, I was following the proposed example, but I used systemd service to run the script on boot. However the service failed to start: pi@raspberrypi:/lib/systemd/system $ systemctl status send_ip.service ● send_ip.service - Send IP Service Loaded: loaded (/lib/systemd/system/send_ip.service; enabled)...
by mpatronska
Thu Sep 08, 2016 2:11 pm
Forum: Java
Topic: Motion sensor listener
Replies: 1
Views: 1098

Motion sensor listener

Hello, I tried the example shown in https://www.reddit.com/r/pi4j/comments/1c0apg/simple_java_pir_motion_sensor_example/ However the program does not output anything. I also tried the GpioMotionSensorComponent which comes with pi4j-device, but the behavior is the same. When using the python example ...
by mpatronska
Wed Sep 07, 2016 10:08 am
Forum: Troubleshooting
Topic: Compiling javacv on raspberry pi
Replies: 1
Views: 908

Re: Compiling javacv on raspberry pi

FYI - I was able to pass through this error by following these instructions: https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments#linux-arm & https://github.com/bytedeco/javacpp-presets/#build-instructions However, there is still a compilation error. If anyone have any suggestions, pl...
by mpatronska
Wed Aug 31, 2016 2:42 pm
Forum: Troubleshooting
Topic: Compiling javacv on raspberry pi
Replies: 1
Views: 908

Compiling javacv on raspberry pi

Getting the following error when trying to compile javacv on raspberry pi: [ERROR] Failed to execute goal on project javacv: Could not resolve dependencies for project org.bytedeco:javacv:jar:1.2.2: The following artifacts could not be resolved: org.bytedeco.javacpp-presets:opencv:jar:3.1.0-1.2.2, o...
by mpatronska
Tue Jun 30, 2015 1:12 pm
Forum: Java
Topic: Reading and writing to Arduino from RPi
Replies: 1
Views: 1182

Reading and writing to Arduino from RPi

Hi, I read data from IR distance sensor from an Arduino that is connected to RPi. I see the data in the RPi. I would like to control a servo motor connected to the Arduino from the RPi. For this task I have a separate thread that writes to the serial port. The problem is that I'm constantly reading ...
by mpatronska
Mon Jun 29, 2015 9:45 am
Forum: Java
Topic: Move servo motor to a certain angle
Replies: 3
Views: 3984

Move servo motor to a certain angle

Hi, I'm trying to move a servo motor to a certain angle (say 0, 90 and 180 gr). I'm using SoftPwm. With this code, the servo moves to the one direction, and then stops - it does not move to the opposite direction, but it makes noise. public class Servo { public static void main(String[] args) { // i...
by mpatronska
Mon Jun 29, 2015 6:50 am
Forum: Java
Topic: Control motors with Pololu DRV8835 Dual Motor Driver
Replies: 1
Views: 1615

Re: Control motors with Pololu DRV8835 Dual Motor Driver

Ok, I was not able to move the motors on Java using Pololu. But I was able to move them using SN754410 motor driver. This is the diagram: http://computers.tutsplus.com/tutorials/controlling-dc-motors-using-python-with-a-raspberry-pi--cms-20051 moves forwards for 1 second stops for 1 second moves bac...
by mpatronska
Sun Jun 28, 2015 4:02 pm
Forum: Java
Topic: Turn on/off LED issue
Replies: 10
Views: 4104

Re: Turn on/off LED issue

Check http://pi.gadgetoid.com/pinout and http://pi4j.com/pins/model-2b-rev1.html
When using Pi4J you should refer to http://pi4j.com/pins/model-2b-rev1.html. If I'm not mistaken, pin 37 corresponds to GPIO_25, not GPIO_26.
by mpatronska
Sun Jun 28, 2015 12:36 pm
Forum: Beginners
Topic: Powering motors with Pololu DRV8835 Dual Motor Driver
Replies: 3
Views: 856

Re: Powering motors with Pololu DRV8835 Dual Motor Driver

Thanks for the reply.

1. The motors need about 6V.
3. The battery pack has two USB ports, the one is 1A and the other 2.4A.
by mpatronska
Sun Jun 28, 2015 10:23 am
Forum: Java
Topic: Control motors with Pololu DRV8835 Dual Motor Driver
Replies: 1
Views: 1615

Control motors with Pololu DRV8835 Dual Motor Driver

Hi, I'm trying to make 2 motors move using Pololu DRV8835 Dual Motor Driver and Java, but it seems that I'm not setting correctly the pins, and it does not lead to movement of the wheels. When using Pololu driver, GPIO 12 and 5 are used to control the speed and direction, respectively, of motor 1, a...
by mpatronska
Sun Jun 28, 2015 6:18 am
Forum: Beginners
Topic: Powering motors with Pololu DRV8835 Dual Motor Driver
Replies: 3
Views: 856

Powering motors with Pololu DRV8835 Dual Motor Driver

Hi, I intend to connect 2 motors to the Raspberry Pi using the Pololu DRV8835 Dual Motor Driver ( https://www.pololu.com/picture/view/0J5735 ) Can I power both the Raspberry Pi and the motors using an external USB battery pack? Or if I use the battery pack for powering the Pi, I should use different...
by mpatronska
Sun Jun 07, 2015 9:59 am
Forum: Java
Topic: Turn on/off LED issue
Replies: 10
Views: 4104

Re: Turn on/off LED issue

You're right. I was reversed them. There's light now.
Thank you.
by mpatronska
Sun Jun 07, 2015 9:19 am
Forum: Java
Topic: Turn on/off LED issue
Replies: 10
Views: 4104

Re: Turn on/off LED issue

The cathode has to be connected to GND pin, right?
As far as I understand from here http://pi4j.com/example/control.html - 6 is ground, 5 is not

I switched to pin 5, as from your fritz. diagram - same result.
I also tried with GPIO_17 instead of GPIO_01 - same result.
by mpatronska
Sun Jun 07, 2015 7:36 am
Forum: Java
Topic: Turn on/off LED issue
Replies: 10
Views: 4104

Turn on/off LED issue

Hi, I'm trying to turn on and off a LED, but it seems that there is a problem somewhere. This is what I'm using: - pin 6 for ground - where the cathode of the led is connected to - pin 12 for output - where the anode of the led is connected to (corresponding to GPIO_01 in pi4j) - pi4j wiring diagram...

Go to advanced search