Very dumb question sorry, but where do you connect external sensors like the barometer and temperature sensors shipped with the Kickstarter kit?
Looking the board in the way the leds are in the upper right corner, the i2c socket is exactly between the network connector and the leds. Insert the cable with the red alined with the outer border of the Udoo Neo. Plug in softly. The other end of the cable have to be plugged in the sensor "IN" connector. The label "In" is close to the sensor name on the sensor board. The barometric sensor is bot temperature and air pressure (I found the value have to be multiplied per 10 more then the scale value). Unfortunately my tries to use the Temperature sensor were with no success. Apparently the kernel module is not loaded with an error and (obviously) no device is attached on /sys/class/i2c-dev/i2c-1/device/1-0048/ Any suggestion? -- Raffaele
Well I don't have the board in my hands right now, but I remember I noticed the cables provided with the two sensors have two differently shaped ends: one with 5 holes and one with 6 holes. Instead, the I2C sockets on both the sensors and the board are made of 5 holes, so there was one end of the cable that couldn't be plugged anywhere. This is not your case? Did your sensors have been shippend with cables with identical ends?
Hi Vinz87, The Udoo Neo connector for the sensors has 5 pins but the "bricks" (sensor boards) have one 5-Pin socket and one 6-Pin socket. So the cables have different ends. Romain
Instructions are at http://www.udoo.org/docs-neo/Hardware_&_Accessories/Bricks_snap_in_sensors.html Sent from my LG-H815 using Tapatalk
sudo sh -c 'echo lm75 0x48 >/sys/class/i2c-dev/i2c-1/device/new_device' ---- Permission denied how to perform under "root"
That's strange, I did not have that issue. Did you boot the board with the sensors already plugged-in ?
Yes, I did. And it does not work. I'll see what happens after enabling the board. Sent from my LG-H815 using Tapatalk
Using sudo you are doing it as root. If you want to just go down to the root shell you can run 'sudo -i' Sent from my LG-H815 using Tapatalk
I understand I need to perform in the console all the code (from http://www.udoo.org/docs-neo/Hardware_&_Accessories/Bricks_snap_in_sensors.html) in a row
I can confirm, looks like have to enable them with each fresh boot. Anyone have a fix? Sent from my Nexus 6P using Tapatalk
upon further review, the sensor do initialize on boot. The issue is that you need to enable the Temp sensor with sudo sh -c 'echo lm75 0x48 >/sys/class/i2c-dev/i2c-1/device/new_device' on each startup. See http://udoo.org/forum/threads/provided-lm75b-temperature-sensor-does-not-seem-to-work.2985/
PL3115A2 - Barometer pressure always- value 99.14-99.15 Why? Its kPa? how to translate in millimeters of mercury? Value * 7.5006375541921 mmHg? How to write the result of script to a file? (script) #!/bin/bash while [ 1 ]; do echo -n 'temp: ' TEMP_RAW=`cat /sys/class/i2c-dev/i2c-1/device/1-0060/iio\:device0/in_temp_raw` TEMP_SCALE=`cat /sys/class/i2c-dev/i2c-1/device/1-0060/iio\:device0/in_temp_scale` python << EOF print( $TEMP_RAW * $TEMP_SCALE ) EOF echo -n 'pressure: ' PRES_RAW=`cat /sys/class/i2c-dev/i2c-1/device/1-0060/iio\:device0/in_pressure_raw` PRES_SCALE=`cat /sys/class/i2c-dev/i2c-1/device/1-0060/iio\:device0/in_pressure_scale` python << EOF print( $PRES_RAW * $PRES_SCALE ) EOF done
Dear Andridy, have you read the docs? If there is something that is not clear in the docs, please tell me but be more specific
Thanks for answer, but i not andestend haw read from Arduino IDE (what kind of skatch?) In the docs, present script only for work from terminal.
I suggest you to try doing it in from the terminal, it's the easier way. Otherwise you would need a program that reads those values for you. The terminal may frighten a bit at the beginning, I see, but don't throw in the towel before the bell rings!