Peter Valencic

  • Content Count

  • Joined

  • Last visited

1 Follower

About Peter Valencic

  • Rank

Profile Information

  • Gender
  • Location
    Izola - Slovenia
  • Interests
    Spearfishing, oceanography, programming

Contact Methods

  • Website URL
  • Skype

Recent Profile Visitors

1129 profile views
  1. Friday magic friday Solved... Have changed SPI mode to 0 and now it works well
  2. ok.. I tryed with this code below... #include <iostream> #include <stdint.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/times.h> #include <linux/types.h> #include <linux/spi/spidev.h> #include <spi_lib.h> using namespace std; #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) static const char *device = "/dev/spidev0.0"; static uint8_t mode = 3; static uint8_t bits = 8; static uint32_t speed = 250000; //250kHz static uint16
  3. Hi Martin and others I started a new Thread because have problems using some third party interfaces with OrangePI running Armbian. Well.. In my project I need to communicate with 5 sensors which have UART output so I decided to buy a circuit (uart2spi) which work well if connected to Arduino. The Circuit description is available here: First step: This is how I have connected the circuit to GPIO bus on my OrangePi pc.. The circuit has (from left to ri
  4. Hi, need some help.. I'am familar with Java but with c/c++ not So.. have downloaded source from: to my orangepi.. Than I have installed the library with python and all is ok.. On the remote PC I have setup Netbeans IDE and now want to include gpio_lib.h The problem is that IDE can't find header files in directories listed below... So.. what is the procedure to use orangepi_PC_gpio_pyH3 library? Can I only copy/paste files to /usr/include folder on my OP?
  5. Hi after half a year using orangepi PC have upgraded system and it hangs when compiling headers.... After that have to reformat sd card and installed last version of armbian and the problem still remain when try to upgrade it... fresh system... đ then apt-get update root@orangepipc:~# clear root@orangepipc:~# apt-get update Hit:1 xenial InRelease Get:2 xenial-security InRelease [102 kB] Get:3 xenial-updates InRelease [102 kB] Get:4 http://a
  6. I found the implementation here (It's for arduino but should work also on orangepi with some modifications): or maybe to use MAX14830 ( 4 uarts to SPI I'm working on scientific project where we must acquire datas over 5 uarts. Each uart is connected to specific sensor (oxygen, temp, salinity, pressure, chlorophile,..)..
  7. Hi, I need to connect this kind of board over SPI bus to Orange PI: Can I use the libraries to talk over SPI bus? regards Peter
  8. Hi, I have trouble to update armbian with apt upgrade. (ARMBIAN 5.27.170320 nightly Debian GNU/Linux 8 (jessie) 3.4.113-sun8i) how to solve? [ 9 updates to install: apt upgrade ] New to Armbian? Check the documentation first: Last login: Sun Mar 19 20:01:15 2017 from peter-laptop root@orangepipc:~# apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: armbian-firmware armbian-tools-jessie hostapd libvdpau1 linux-headers-sun8i
  9. Hi, Have Arduino (microcontroller) clone with CH340 USB/UART (USB serial port). Does armbian support it? regards Peter
  10. Hi, for my project I need to stream a video from IP camera and add some text from sensors into the final video. From armbian console I have installed ffmpeg (apt-get install ffmpeg).. The program works except the text is not included into streamed video: Example: ffserver.conf HTTPPort 8090 HTTPBindAddress MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 10000 CustomLog - <Feed monitoring1.ffm> File /tmp/monitoring1.ffm FileMaxSize 50M ACL allow ACL allow </Feed> <Stream monitoring1.mjpg> Feed monitoring1.