Go to advanced search

by 1dot0
Sat Feb 03, 2018 9:13 am
Forum: C/C++
Topic: How can I practice my code for RPI?
Replies: 12
Views: 2273

Re: How can I practice my code for RPI?

some functions need root rights, e.g. hardware pwm and perhaps i2c or some more - I often had troubles without it, and eventually sudo wouldn't matter.
by 1dot0
Sat Feb 03, 2018 9:06 am
Forum: C/C++
Topic: How can I practice my code for RPI?
Replies: 12
Views: 2273

Re: How can I practice my code for RPI?

Hello I just launched my project on Raspberry Pi. As it is very slow when I programming on, is there any IDE that I can try to compile first on windows ? BTW, i need to use multiple threads use Geany, it's already pre-installed by Jessie or Stretch (Desktop menu, tools) preferences: compile: gcc -W...
by 1dot0
Tue Jan 30, 2018 6:29 pm
Forum: C/C++
Topic: mpu6050 with kalman filter
Replies: 10
Views: 7575

Re: mpu6050 with kalman filter

danjperron wrote:
Tue Jan 30, 2018 5:54 pm
This will be easy to implement on the Raspberry PI.

Already in C++

https://github.com/TKJElectronics/KalmanFilter
that is an Arduino lib, I 'm not sure if it will work for the Pi out of the box, but maybe....
by 1dot0
Sat Jan 20, 2018 8:49 am
Forum: Gaming
Topic: raylib - simple and easy-to-use library to make videogames
Replies: 16
Views: 7974

Re: raylib - simple and easy-to-use library to make videogames

thank you very much for your guide, nonetheless I have 3 concerns / considerations: 1st, I have Jessie, not Stretch, and I have no Pi3 but just 2 old Pi2 2nd, I need the XWindows because all windows have to be resizeable and moveable due to different additional windows. 3rd, last but not least, I ha...
by 1dot0
Fri Jan 19, 2018 3:34 pm
Forum: Gaming
Topic: raylib - simple and easy-to-use library to make videogames
Replies: 16
Views: 7974

Re: raylib - simple and easy-to-use library to make videogames

hello,
I am really curious about raylib to run on my Pi with gcc C/C++
- but how to install it directly on the Pi (apt install or git clone?)
- and how to use it with Geany (compile and build flags)?
by 1dot0
Fri Jan 12, 2018 3:39 pm
Forum: C/C++
Topic: Hardware PWM Pin 32 and Pin 33 Question
Replies: 25
Views: 4991

Re: Hardware PWM Pin 32 and Pin 33 Question

Most Arduino pwm outputs are set to about 490Hz or 980Hz by default. The frequencies are generated as a result of the clock frequency being divided by a pre-scaler. One may also set the pre-scaler arbitrarily. Note that "Arduino" may relate to AVR cpus at 8-16MHz and ARM cpus from 48-84 MHz (and per...
by 1dot0
Fri Jan 12, 2018 2:19 pm
Forum: C/C++
Topic: Hardware PWM Pin 32 and Pin 33 Question
Replies: 25
Views: 4991

Re: Hardware PWM Pin 32 and Pin 33 Question

I am using DC motors by pwm frequencies from about 1kHz up to 25 kHz - all are fine. Admittedly, for lower frequencies there might be increasingly audible beeps occuring. On the Pi I used soft pwm generated by wiringPi, additionally I am using add-on shields which have built-in AVR or ARM cpus, no i...
by 1dot0
Mon Dec 18, 2017 8:46 am
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

A couple of minutes with google ..... Google for MCP3424 take link to microchip site (the makers of the chip). http://www.microchip.com/wwwproducts/en/MCP3424 Click the "Documentation" link on that page and take link to "MCP3422/3/4 Data Sheet" OH :shock: Here's a clue, the MCP3422,3423 and 3424 sh...
by 1dot0
Sun Dec 17, 2017 8:48 pm
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

Google can't find it because Gordon could be blocking the Googlebots on his small and overloaded website. Also you need a special level of Google Fu to find things like that (mainly because it doesn't contain "MCP3424" as a plain text string). I'm not blocking anything. Google can't find it simply ...
by 1dot0
Sun Dec 17, 2017 5:38 pm
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

that's a pity, because it would help a lot if Google on Windows could find your ressources, too! That's exactly why always people ask here in this forum about drivers, although wiringPi provides them already - but they don't find anything! https://git.drogon.net/?p=wiringPi;a=blob;f=wiringPi/mcp342...
by 1dot0
Sun Dec 17, 2017 5:19 pm
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

that's a pity, because it would help a lot if Google on Windows could find your ressources, too!
That's exactly why always people ask here in this forum about drivers, although wiringPi provides them already - but they don't find anything!
by 1dot0
Sun Dec 17, 2017 5:11 pm
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

source code? where? https://git.drogon.net/ There. where is the MCP3424 listed in https://git.drogon.net/ ? and perhaps even more drivers? The link I gave earlier - http://wiringpi.com/ See the download/install link.-Gordon http://wiringpi.com/download-and-install/ :?: where can I browse this with ...
by 1dot0
Sun Dec 17, 2017 3:50 pm
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

Where is the overview which lists all and everything? It's all in the source code. I just haven't had the time/energy to document everything due to other issues/illness in the past few years, sorry. -Gordon source code? where? when I search, I use my Windows PC and my Firefox browser for the intern...
by 1dot0
Sun Dec 17, 2017 2:05 pm
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

hello Gordon, I also have been looking through your websites before I suggested the other link above, both wiringPi and Projects, just because I was curious, but none of your websites listed the MCP3424, neither beneath Examples/HowTo, nor beneath Reference, nor beneath Extensions, nor beneath DevLi...
by 1dot0
Sun Dec 17, 2017 8:43 am
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 22
Views: 4117

Re: Problem with voltage measure with MCP3424 in c++

Hey guys ! We want to get the voltage of our source with an MCP3424 using the i2c protocol between a raspberry pi3 ( the master ) and the MCP3424 ( the slave ). The problem is that we dont know how to setup our MCP3424 with an c++ code. Here is our code at the moment : #include <wiringPi.h> #includ...
by 1dot0
Fri Dec 01, 2017 7:20 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2188

Re: A simple weather/environmental data collector in C

hell, that lib is really weird, already the first page is totally confusing... https://github.com/BoschSensortec/BME680_driver if I had to use this device, I'd interface it to an Arduino instead, here are just 2 lines to init: #include "ClosedCube_BME680.h" // iclude the lib ClosedCube_BME680 bme680...
by 1dot0
Fri Dec 01, 2017 6:50 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2188

Re: A simple weather/environmental data collector in C

There are other inexpensive air sensors such as the Bosch BME680. It includes temperature, humidity, pressure and air quality all in one and probably works fine when connected to the RPI boards. tbh, I don't find functioning Raspberry C code drivers for the BME680. OTOH, there seems to be a functio...
by 1dot0
Thu Nov 30, 2017 3:25 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2188

Re: A simple weather/environmental data collector in C

why not buy a 3 EUR Arduino Nano Board (China clone), plug the CCS811 with the Nano, and connect the Nano via UART (or USB) with your Pi? I believe I just answered that in my previous post. You're suggesting spending more money and time when I had already found a simpler solution. There are other i...
by 1dot0
Thu Nov 30, 2017 2:00 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2188

Re: A simple weather/environmental data collector in C

why not buy a 3 EUR Arduino Nano Board (China clone), plug the CCS811 with the Nano, and connect the Nano via UART (or USB) with your Pi?
by 1dot0
Sat Nov 25, 2017 1:05 pm
Forum: C/C++
Topic: C++
Replies: 3
Views: 816

Re: C++

hello, I would suggest to start with the Geany IDE. It is also already installed with Jessie or Stretch. If you are not already experienced in ANSI C on your Pi, I would advice you to start with this C tutorial for your first steps, and then later proceed to C++ in the same programming environment: ...
by 1dot0
Fri Nov 17, 2017 10:49 am
Forum: OpenVG
Topic: Transparent background
Replies: 11
Views: 14496

Re: Transparent background

thank you very much!
by 1dot0
Wed Nov 15, 2017 7:54 pm
Forum: OpenVG
Topic: Transparent background
Replies: 11
Views: 14496

Re: Transparent background

hi,
are there already some news, updates, or fixes about openvg installation to Stretch?
by 1dot0
Sun Nov 12, 2017 2:25 pm
Forum: C/C++
Topic: [done] Starting with C++
Replies: 6
Views: 1735

Re: Starting with C++

I double that: Too poor code examples for C to beginners available in complete tutorials, compared to Arduino or Python/Pi ! about temperature and humidity, what about that: http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/ /* * dht11.c: * Simple test program to test the wiri...
by 1dot0
Wed Nov 08, 2017 10:51 am
Forum: C/C++
Topic: I2C LCD Display Library
Replies: 19
Views: 7429

Re: I2C LCD Display Library

for me wiringPi works without cmake, just -lwiringPi (incl. special libs in case, e.g. for #include <wiringPiI2C.h> which does everything for i2c), e.g. gcc -o blink blink.c -lwiringPi -lm is only required if you need to #include <math.h> pthread is already #included in wiringPi, and -lrt is outdate...
by 1dot0
Sat Oct 28, 2017 10:41 am
Forum: C/C++
Topic: Problem with Geany - 'execute' command displays blank terminal window
Replies: 8
Views: 4016

Re: Problem with Geany - 'execute' command displays blank terminal window

ok, I see... your suggested solution was not clearly visible as you just posted a link with mutiple posts, not just the solution. Nonetheless, as I once tried the standard installation of Stretch with a simple C program and Geany, it worked for me remarkably ( I dropped stretch meanwhile because ope...

Go to advanced search