Go to advanced search

by bensimmo
Thu Jul 19, 2018 10:11 am
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 48
Views: 816

Re: What Does Hiding the Details of I/O in Library Calls Teach?

As for "nobody who knows how to make anything" clearly somebody does. From the Linux kernel, to the OS built on it, to the language compilers and other tools, to the web browser I'm talking to you through. A huge lot of stuff, that mostly works very well. Where did that all come from? Indeed, but y...
by bensimmo
Thu Jul 19, 2018 6:32 am
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 48
Views: 816

Re: What Does Hiding the Details of I/O in Library Calls Teach?

ejolson wrote:
Thu Jul 19, 2018 2:40 am
jamesh wrote:
Wed Jul 18, 2018 9:39 pm
Pay peanuts, get monkeys.
Have you tried paying with bananas?
That's when you get Orangutans.



ook.
by bensimmo
Wed Jul 18, 2018 5:16 pm
Forum: General discussion
Topic: Confusing about the hardware and I2C connection on raspberry pi 3
Replies: 10
Views: 251

Re: Confusing about the hardware and I2C connection on raspberry pi 3

The display runs off 3V3, the backlight and characters are dimmer (adjust the variable resistor to max brightness).

I use the same i2c board with 2x16 LCD.
by bensimmo
Wed Jul 18, 2018 1:16 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: USBBOOTGUI Zero issue - 1 Wire
Replies: 4
Views: 86

Re: Using w1_gpio and w1_therm on X86 Debian

You may want to put 'usbbootgui' in the title to catch the attention of the people who know it better. (maybe 1-wire via usbbootgui ) I don't think it works like you think it might. Everything you do needs to support and use pigpio, it isn't automatic or local, you redirect everything via the IPv6 a...
by bensimmo
Wed Jul 18, 2018 11:25 am
Forum: Beginners
Topic: RFID GPIOS
Replies: 2
Views: 47

Re: RFID GPIOS

As above,
also that looks like the other RC522 boards (also from your tech doc)

These might help you
https://pimylifeup.com/raspberry-pi-rfid-rc522/
https://www.raspberrypi-spy.co.uk/2018/ ... pberry-pi/
by bensimmo
Wed Jul 18, 2018 8:38 am
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 48
Views: 816

Re: What Does Hiding the Details of I/O in Library Calls Teach?

One thing to consider is that it's fine to say the Foundation should be opening people eyes to the lower level work (and yes it would be good for those interested or a higher level computer engineering course, I would love to see them). Also methods on each specific protocol, i2c, SPI, UART, pwm etc...
by bensimmo
Wed Jul 18, 2018 6:06 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: USBBOOTGUI Zero issue - 1 Wire
Replies: 4
Views: 86

Re: Using w1_gpio and w1_therm on X86 Debian

I think you need to look at pigpiod information directly. The way I see it. If you have 1-wire working and reading the sensors correctly on the Pi directly (SSH) then to use pigpiod (remote gpio access), you actually need to be using the file access methods as that is what you are doing to read the ...
by bensimmo
Tue Jul 17, 2018 9:04 pm
Forum: General discussion
Topic: Blue Raspberry
Replies: 31
Views: 2681

Re: Blue Raspberry

If they don't read that, you could try the Integrator Programme team at [email protected]

More info https://www.raspberrypi.org/blog/raspbe ... programme/
by bensimmo
Tue Jul 17, 2018 7:07 pm
Forum: General discussion
Topic: Free Fall detection through Accelerometer using raspberry pi
Replies: 10
Views: 255

Re: Free Fall detection through Accelerometer using raspberry pi

I edited with a bit and cannot type quick enough. You don't really need the maths, just a basic check. But fast polling is CPU intensive and you need to ommit false positives, maybe not the best word, but brief passthrough moments of 'freefall' and you ahooen to measure it. I don't think anything ca...
by bensimmo
Tue Jul 17, 2018 6:53 pm
Forum: General discussion
Topic: Free Fall detection through Accelerometer using raspberry pi
Replies: 10
Views: 255

Re: Free Fall detection through Accelerometer using raspberry pi

While this has drifted and centripetal is a resultant "force"... And an accelerometer is measuring in all three axis anyway.. I think you are missing something (possibly). Many of these sensors have in built free fall detection. I don't think this is one of them. ADXL345 does have this. Of course yo...
by bensimmo
Tue Jul 17, 2018 5:37 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 48
Views: 816

Re: What Does Hiding the Details of I/O in Library Calls Teach?

It's also like saying why teach them Python, when you could teach them the lower level C to start with or why not just start with machine code. It depends how you look at programming and what you want them to achieve. In primary and secondary you are teaching them the language(s), sequence and logic...
by bensimmo
Tue Jul 17, 2018 9:11 am
Forum: Add-ons
Topic: Hardware Specification of the RPi's
Replies: 22
Views: 487

Re: Hardware Specification of the RPi's

To be fair, given the critical nature of the Power Supply needed for the Pi and the many "check you PSU answers" then that spec and what the tolerances, ripple are is fine question. Of course that is just for the Pi itself and couldn't include anything else on the 5V line, less so even on the Zero's...
by bensimmo
Tue Jul 17, 2018 8:47 am
Forum: Automation, sensing and robotics
Topic: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?
Replies: 21
Views: 389

Re: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?

I didn't mention other parts as I'm still not sure what he is doing (controlling a mains light and wanting dimming on/off with remote monitor of it's position OR just wanting the dial&button for something else completely unrelated). Interfacing can come later as you (or someone) had already mentione...
by bensimmo
Tue Jul 17, 2018 7:10 am
Forum: Automation, sensing and robotics
Topic: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?
Replies: 21
Views: 389

Re: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?

So you are basically looking for a rotary potentiometer or encoder that has the shaft as a push button to turn on. Something like this https://news.thomasnet.com/fullstory/potentiometer-switch-offers-rotary-and-push-on-functionality-20006470 I would first have fun pulling apart the light switch. As ...
by bensimmo
Mon Jul 16, 2018 7:26 pm
Forum: Beginners
Topic: connecting raspberry pi 3 model b+ to SenseHat
Replies: 7
Views: 179

Re: connecting raspberry pi 3 model b+ to SenseHat

My original ones did not have any other parts with them (from near when they were first released) but my brand new recent one did, they also have different LED's on them, 'square' not 'round' image from them.
by bensimmo
Mon Jul 16, 2018 7:22 pm
Forum: Automation, sensing and robotics
Topic: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?
Replies: 21
Views: 389

Re: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?

I would be looking at Sonoff-Tasmota/WeeMo setups that will do the on-off \nd also the dimming (they can certainly do the smart on/off switching. https://github.com/arendst/Sonoff-Tasmota/wiki and have a look at Arduino AC light dimming, it may give some insight to reading the dimmer value e.g. http...
by bensimmo
Mon Jul 16, 2018 7:15 pm
Forum: Beginners
Topic: connecting raspberry pi 3 model b+ to SenseHat
Replies: 7
Views: 179

Re: connecting raspberry pi 3 model b+ to SenseHat

alphanumeric wrote:
Mon Jul 16, 2018 12:37 pm
I would use stand offs so the Sense Hat stays level and doesn't touch those 4 extra POE pins.
New SenseHats now come with black standoffs
by bensimmo
Mon Jul 16, 2018 4:25 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART read problem
Replies: 9
Views: 196

Re: UART read problem

If you disable Bluetooth, then if I remember correctly, you are now using the ttyAMA0 (full UART) and not S0 (miniUART) Either way you should I followed this guide : https://www.i-programmer.info/programming/cc/10027-serial-c-and-the-raspberry-pi.html?start=1 I also enabled getty on ttyS0 in /etc/i...
by bensimmo
Mon Jul 16, 2018 9:39 am
Forum: Beginners
Topic: connecting raspberry pi 3 model b+ to SenseHat
Replies: 7
Views: 179

Re: connecting raspberry pi 3 model b+ to SenseHat

The 4 pins are not a problem, they are for something else and do not get in the way.

While you wait, you can use sense_emu in place of sense_hat . In your python programs at the import module.
by bensimmo
Mon Jul 16, 2018 9:19 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART read problem
Replies: 9
Views: 196

Re: UART read problem

If you disable Bluetooth, then if I remember correctly, you are now using the ttyAMA0 (full UART) and not S0 (miniUART) Either way you should You should what? Where you going to say: you should use /dev/serial0 ? I can't remember, lol, it might well have been but it's not on Raspbian so wouldn't wo...
by bensimmo
Mon Jul 16, 2018 7:04 am
Forum: Automation, sensing and robotics
Topic: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?
Replies: 21
Views: 389

Re: Is it possible to read the value of a UK dimmer switch with Raspberry Pi?

What are you trying to do with it? Mains UK dimmers work on AC. They slice the 50Hz mains up by altering the trigger level it turns the bulb on. This alters the time it is on and off. At least this was how it was done the last time had a look at them. I would guess given its working over and average...
by bensimmo
Mon Jul 16, 2018 6:41 am
Forum: Android
Topic: android app for raspberry pi
Replies: 8
Views: 227

Re: android app for raspberry pi

Probably as few people write that write Android Apps that are replying in a Raspberry Pi forum. I assume most will use Android Studio for developing Android Apps and for Android Things. Since it keeps you in the Android world of doing things. After that it would be personal preference. Others are us...
by bensimmo
Sun Jul 15, 2018 9:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART read problem
Replies: 9
Views: 196

Re: UART read problem

If you disable Bluetooth, then if I remember correctly, you are now using the ttyAMA0 (full UART) and not S0 (miniUART)


Either way you should
by bensimmo
Sun Jul 15, 2018 9:06 pm
Forum: Android
Topic: android app for raspberry pi
Replies: 8
Views: 227

Re: android app for raspberry pi

joan wrote:
Sun Jul 15, 2018 8:49 pm
The pigpio Python module should run under Android (at least it does on my Android phone with QPython3).

http://abyz.me.uk/rpi/pigpio/python.html
It does for me too under Pydroid3 iirc.
As does gpiozero to make it easier for the beginner.

Go to advanced search