Go to advanced search

by LeoJr2015
Mon Mar 30, 2015 2:38 pm
Forum: General discussion
Topic: Help finding good power supply
Replies: 13
Views: 2415

Re: Help finding good power supply

ludespeedny wrote:related: I have a usb cable 6ft 28awg that seems to be causing issues on my B+ with a 5v2a adapter I already have. Should I look for a 5.1 or 5.2v adapter instead, or just get a "wall wart" with a micro usb on the end?
I suggest you put a voltmeter on it and see. Shouldnt be less than 4.7 or 4.8
by LeoJr2015
Mon Mar 30, 2015 2:36 pm
Forum: General discussion
Topic: Help finding good power supply
Replies: 13
Views: 2415

Re: Help finding good power supply

Over my lunch today I am heading out to but a Raspberry Pi 2, and am wanting to get a good adapter that will work. Currently I have a RPi model B with the following plugged into a hub: Edimax Wifi, Rii KB/mouse dongle, usb tv tuner, external hdd. I would like to power all these off the new RPi 2 if...
by LeoJr2015
Mon Mar 30, 2015 2:27 pm
Forum: General discussion
Topic: Pi 2 Sudo Issue
Replies: 11
Views: 1890

Re: Pi 2 Sudo Issue

metalj wrote:I had a similar issue and realized after much fustration that I wasn't connected to the internet.
what does connecting to the internet have to do with sudo?? :shock:
by LeoJr2015
Mon Mar 30, 2015 2:25 pm
Forum: General discussion
Topic: Raspberry Pi 2B as a Media Streamer
Replies: 12
Views: 6330

Re: Raspberry Pi 2B as a Media Streamer

Plex is also a good choice for streaming movies, it has a lot of codecs built in
by LeoJr2015
Wed Mar 25, 2015 11:21 pm
Forum: C/C++
Topic: gettimeofday issue
Replies: 4
Views: 1445

Re: gettimeofday issue

AndyD wrote:
LeoJr2015 wrote:...Whats the difference between #include <time.h> and #include <sys/time.h> ??
I believe the difference is time.h is ANSI/ISO C and sys/time.h is POSIX.
Thank you, sir! :D
by LeoJr2015
Wed Mar 25, 2015 11:11 pm
Forum: C/C++
Topic: gettimeofday issue
Replies: 4
Views: 1445

Re: gettimeofday issue

AndyD wrote:Have a look at

Code: Select all

man gettimeofday
There should be man pages for all the system calls like gettimeofday Short answer:-

Code: Select all

#include <sys/time.h>
Perhaps thats my fault. Whats the difference between #include <time.h> and #include <sys/time.h> ??
by LeoJr2015
Wed Mar 25, 2015 10:55 pm
Forum: C/C++
Topic: gettimeofday issue
Replies: 4
Views: 1445

gettimeofday issue

I am getting an implicit call warning when I compile my prog related to gettimeofday. I cannot seem to deduce why, as I have included time.h library. Please have a look and see if you see anything out of the usual: PI_THREAD (flowrate) { piHiPri (20) ; int lastCount = 0 ; struct timeval tv ; double ...
by LeoJr2015
Sat Mar 21, 2015 8:28 pm
Forum: C/C++
Topic: math problems in C
Replies: 12
Views: 4174

Re: math problems in C

PeterO wrote:You have the wrong conversion specifier for doubles in printf.

"man 3 printf" will tell you all you need to know :-)

PeterO
Thanks, Peter. I will check that out! :)
by LeoJr2015
Sat Mar 21, 2015 8:16 pm
Forum: C/C++
Topic: math problems in C
Replies: 12
Views: 4174

math problems in C

I am in the process of trying to convert a python script to C, and I am having issues with the math. For some reason, I cannot get a good result. #include <wiringPiSPI.h> #include <mcp3004.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #define THERMISTORNOMINAL 10000 #define TEMPERATURE...
by LeoJr2015
Sun Mar 01, 2015 7:42 pm
Forum: General discussion
Topic: Pi2 Crash..
Replies: 7
Views: 1114

Re: Pi2 Crash..

I am just curious, was the board made in UK or China? Because apparently, there are some made in China ones out there
by LeoJr2015
Sun Mar 01, 2015 4:34 pm
Forum: Python
Topic: gpio event button hold time
Replies: 5
Views: 3113

Re: gpio event button hold time

elParaguayo wrote:Separate thread can be in the same script (mine is). Just need to use python's Threading module.
Do you have this code example? I am trying to do this same exact thing now. I am new to threading with python, and I am not sure how to put both in the same script. Thanks for any assistance.

Go to advanced search