Go to advanced search

by minimalfra
Mon Jan 18, 2016 9:25 pm
Forum: Other programming languages
Topic: light a led wired to arduino by php
Replies: 5
Views: 1352

Re: light a led wired to arduino by php

Hi guys, after a lot of research, I think that, the problem could concern the permission. The php web interface, could use /dev/ttyACM0 port, but maybe, it doesen't happens. Considering the possible users like, www-data (Apache2), root and pi, after having seen some guides online, I'm confused. I ca...
by minimalfra
Thu Jan 14, 2016 7:48 pm
Forum: Other programming languages
Topic: light a led wired to arduino by php
Replies: 5
Views: 1352

Re: put on the led wired to arduino by php

We would need to see how you connected the LED too. I'm sorry I have no answer yet from italian section the leds are connected on pin 13, 12, 11 of Arduino board. I follow this guide: https://peopleorientedprogrammer.wordpress.com/2013/05/12/raspberry-pi-arduino-and-php-a-home-automation-baby-step/...
by minimalfra
Thu Jan 14, 2016 1:43 pm
Forum: Italiano
Topic: LED Arduino RPI2 PHP
Replies: 1
Views: 605

LED Arduino RPI2 PHP

Ciao a tutti, nell'oggetto ho cercato di riassumere un po i componenti del progetto. Dunque al mio Arduino ho collegati dei LED ai pin 11 12 e 13, e vorrei accenderli e spegnerli con una interfaccia web php tramite il raspberry, questi ultimi due sono collegati tramite la seriale usb. Come guida ho ...
by minimalfra
Thu Jan 14, 2016 12:55 pm
Forum: Other programming languages
Topic: light a led wired to arduino by php
Replies: 5
Views: 1352

Re: put on the led wired to arduino by php

rurwin wrote:We would need to see how you connected the LED too.

Is there a forum in your native language here? viewforum.php?f=90
You might find it easier to explain your problem there.
Sure Thanks :D
by minimalfra
Wed Jan 13, 2016 10:49 pm
Forum: Other programming languages
Topic: light a led wired to arduino by php
Replies: 5
Views: 1352

light a led wired to arduino by php

Hi, In my project i connect the rpi2 and arduino by serial USB, I would put on some leds, by a php interface. So the php interface it's ok, but when i chose the led to put on, nothing happens. The serial tune it's ok becouse i can put on the leds by minicom tool on rpi terminal. So I've read that th...
by minimalfra
Fri Jan 08, 2016 10:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything [SOLVED]

The communication is Ok but when I try to upload the sketch to control my servo, IDE responde ever with the same error: ATTENTION: the library Servant states to function on architectures [avr, sam] and may be incompatible with your current card that uses the architecture [samd]. But I think that now...
by minimalfra
Fri Jan 08, 2016 1:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything [SOLVED]

joan wrote:Both the Pi and the Arduino M0 Pro need to be I2C bus masters. You can't use I2C to communicate between them.

You can use the serial link and/or SPI.
Ok I'll Try with SPI...
by minimalfra
Fri Jan 08, 2016 1:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything [SOLVED]

[code] // Arduino Pin A5 to RPi SDA // Arduino Pin A6 to RPi SCL // Inspiration from Ocra Laing's Blog http://blog.oscarliang.net/raspberry-pi-arduino-connected-i2c #include <Wire.h> #include <Servo.h> #define SLAVE_ADDRESS 0x28 int number = 0; int state = 0; // Setup LED test pin int Led = 3; // S...
by minimalfra
Thu Jan 07, 2016 9:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything [SOLVED]

Hi DougieLawson, but now what it means to the address 0x28 ? Why someone else gets the address 0x04 ?
by minimalfra
Wed Jan 06, 2016 11:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

Are you sure the right pins on your Arduino are wired to pin#3 SDA and pin#5 SCL on your RPi. Because your UNO diagram doesn't match the pinout on a Arduino M0 Pro SDA and SCL are on the top row and marked as such. Great but I feel really stupid :lol: to not have noticed this difference on my board...
by minimalfra
Wed Jan 06, 2016 9:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

joan wrote:As long as the Arduino doesn't have pull-ups you will be fine.
Ok joan, but it could be necessary a level converter to solve my problem?
by minimalfra
Wed Jan 06, 2016 9:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

joan wrote:Probably not.

Is your Arduino 5V? If so will it have 5V pull-ups on SDA/SCL which will kill the Pi?
But in the guides that I followed it was explained that being rpi2 master and slave Arduino not need a level converter because Arduino has no pull-up resistors installed.
by minimalfra
Wed Jan 06, 2016 8:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

Is the arduino running as an I2C slave? Maybe yes but I don't know, how can I Know it ? Because you've loaded the sketch into the Arduino and you know what that sketch is doing. Ok DougieLawson, I loaded this sketch into the arduino: #include <Wire.h> #define SLAVE_ADDRESS 0x04 int number = 0; int ...
by minimalfra
Wed Jan 06, 2016 6:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

DougieLawson wrote:Is the arduino running as an I2C slave?
Maybe yes but I don't know, how can I Know it ?
by minimalfra
Wed Jan 06, 2016 5:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

DirkS wrote:Is anything connected on the i2c bus?
If so, what is it and is it wired correctly?
Sure the wired is this but are a Rpi2 and an Arduino M0 pro
i2c.png
i2c.png (51.66 KiB) Viewed 4409 times
by minimalfra
Wed Jan 06, 2016 5:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

pi@raspberrypi:~ $ ls -l /dev/i2c* crw-rw---- 1 root i2c 89, 1 Jan 6 17:02 /dev/i2c-1 pi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- --...
by minimalfra
Wed Jan 06, 2016 4:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

Start with a fresh Raspbian image, then enable with raspi-config. Ok 6by9 I'm do it, and then enable i2c and isp from raspi-config whitout changes in, /etc/modprobe.d/raspi-blacklist.conf /etc/modules /boot/config.txt or yes? and I have to install something like i2c-tools, python-smbus and libi2c-d...
by minimalfra
Wed Jan 06, 2016 1:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

Re: i2c interface detect anything

Hi Joan Thank's for your answer, What operating system are you using? cat /etc/os-release RETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/Raspb...
by minimalfra
Wed Jan 06, 2016 11:54 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c interface detect anything [SOLVED]
Replies: 37
Views: 6197

i2c interface detect anything [SOLVED]

Hi, I'm a beginners and I have a rpi2 with Kernel 4.1.15-v7 and an Arduino m0 pro, I Would like to communicate with i2c but after following all the guidelines on the web, it doesn't detect anything. it could be a kernel problem? maybe it is necessary a more updated and specific procedure? than kyou ...
by minimalfra
Mon Jul 06, 2015 8:42 pm
Forum: Java
Topic: Control your reflex with gp2server
Replies: 11
Views: 2244

Re: Control your reflex with gp2server [RESOLVED]

this is the final release running

https://github.com/mvmn/gp2srv/releases/tag/0.05

:D :D :D
by minimalfra
Tue Jun 16, 2015 9:59 am
Forum: Java
Topic: Control your reflex with gp2server
Replies: 11
Views: 2244

Re: Control your reflex with gp2server

Just like that? https://github.com/mvmn/gp2srv/issues/1

xranby thanks for your support... ;)
by minimalfra
Tue Jun 16, 2015 7:51 am
Forum: Java
Topic: Control your reflex with gp2server
Replies: 11
Views: 2244

Re: Control your reflex with gp2server

Hi xranby, almost everything is ok, I managed to use the webapp but not totally.... I can get only the preview of my reflex, but I can't access the settings, because this is the output: 2015-06-16 09:24:00.823 - ERROR: Failed to parse camera config java.lang.Exception: Unable to parse type value RAN...
by minimalfra
Mon Jun 15, 2015 3:03 pm
Forum: Java
Topic: Control your reflex with gp2server
Replies: 11
Views: 2244

Re: Control your reflex with gp2server

Indeed, the downloaded gp2srv_0.01.zip release do not contain the ./rugp2srv.sh launch script. https://github.com/mvmn/gp2srv/releases The release instead contains an "executable" java jar "The program is distributed as an executable JAR file + lib folder with dependencies (few more JAR files). Onc...
by minimalfra
Mon Jun 15, 2015 11:52 am
Forum: Java
Topic: Control your reflex with gp2server
Replies: 11
Views: 2244

Re: Control your reflex with gp2server

hi thank you xranby for your answer...

But I'm sorry, Your advice is correct without errors but I can't access to port 8080

the address is this: raspberrypi.192.168.1.26:8080 because i'm not in local... is it true?

Go to advanced search