Go to advanced search

by hippy
Thu Nov 26, 2020 12:08 pm
Forum: Troubleshooting
Topic: Wiring a USB Hub to A Raspberry PI Zero 1.3
Replies: 6
Views: 174

Re: Wiring a USB Hub to A Raspberry PI Zero 1.3

I verified that the hub I was trying to wire to it was 100% functional with the Pi Zero before trying. It worked just fine with the hub through the microUSB port. In which case it would seem the issue is in directly wiring it to the Pi; wiring error, wires swapped over, cold solder joint, or someth...
by hippy
Thu Nov 26, 2020 12:00 pm
Forum: Troubleshooting
Topic: Launch python from rc.local
Replies: 8
Views: 201

Re: Launch python from rc.local

I have tried modifying my rc.local to run it. That should work. You can add the following early in /etc/rc.local to create a log file which allows what's going on within rc.local to be monitored ... exec > /tmp/rc.local.log 2>&1; set -x Then, when rebooted, to see what happened ... cat /tmp/rc.loca...
by hippy
Thu Nov 26, 2020 11:51 am
Forum: Android
Topic: Android programming is possible (there's a catch)
Replies: 6
Views: 233

Re: Android programming is possible (there's a catch)

Drag and drop' visual programming is not to everyone's taste. Egad, that's what it is. Yeah I'll steer clear of that. I don't like visual programming either but I am happy to suffer that in this case because it works and is far simpler to set-up and use than other options. It's fine for apps which ...
by hippy
Thu Nov 26, 2020 11:30 am
Forum: General discussion
Topic: How do I force the 3.5 jack over the HDMI?
Replies: 11
Views: 317

Re: How do I force the 3.5 jack over the HDMI?

https://github.com/dtcooper/raspotify/issues/22 ... got it working by adding --onstart 'sudo amixer cset numid=3 1' --onstop 'sudo amixer cset numid=3 0' Just to note : Due to changes to Raspberry Pi OS around the same time as the Pi 4B 8GB was launched, "amixer cset numid=3" no longer works for set...
by hippy
Wed Nov 25, 2020 6:54 pm
Forum: Bare metal, Assembly language
Topic: Avoiding 100% CPU usage
Replies: 14
Views: 424

Re: Avoiding 100% CPU usage

Thanks. I'll likely just add a block of NOP's to have a better ratio of 'doing nothing' to 'doing things'.
by hippy
Wed Nov 25, 2020 6:37 pm
Forum: Python
Topic: input string throws 'name 'Q' is not defined'
Replies: 3
Views: 116

Re: input string throws 'name 'Q' is not defined'

One curiosity is that if I run it in Windows 10, Python 3.7.8, it works only if the if statements reference string values without quotes (i.e., 1, not '1') but in Raspian the opposite is true. That's rather odd but you could try running this on both - answer = input("1 or Q :") print(answer) print(...
by hippy
Wed Nov 25, 2020 5:15 pm
Forum: Bare metal, Assembly language
Topic: Avoiding 100% CPU usage
Replies: 14
Views: 424

Re: Avoiding 100% CPU usage

I did not think using a NOP would reduce the CPU usage from 100%, but if it does that is ideal for me.
by hippy
Wed Nov 25, 2020 4:36 pm
Forum: Bare metal, Assembly language
Topic: Avoiding 100% CPU usage
Replies: 14
Views: 424

Avoiding 100% CPU usage

If one has a bare metal assembly language loop, for example when waiting for a GPIO pin to be asserted; how does one prevent that using 100% CPU, raising the SoC's temperature ?
by hippy
Wed Nov 25, 2020 12:50 pm
Forum: Troubleshooting
Topic: Wiring a USB Hub to A Raspberry PI Zero 1.3
Replies: 6
Views: 174

Re: Wiring a USB Hub to A Raspberry PI Zero 1.3

Worse case with this project is I make a port for the microUSB port on the back and just stick a microUSB OTG adapter in the Pi, plug a hub into that, and route the hub from the outside of the shell to the inside, which would just be nasty looking. I couldn't even get that to work. It seems the Zer...
by hippy
Wed Nov 25, 2020 12:37 pm
Forum: Android
Topic: Android programming is possible (there's a catch)
Replies: 6
Views: 233

Re: Android programming is possible (there's a catch)

What about the MIT app inventor 2? https://summerofcode.withgoogle.com/archive/2016/projects/4758962813534208/ That appears to be IoT specific. What most people want to do is write apps for phones. MIT App Inventor 2 itself is not IoT specific and is what I have used for my own-written apps which r...
by hippy
Tue Nov 24, 2020 5:34 pm
Forum: General discussion
Topic: Licence for HDMI
Replies: 4
Views: 252

Re: Licence for HDMI

My question is, will we need our own HDMI licence or does the Raspberry Pi licence cover this use case? Joining or contacting the Pi Integrator's Programme should get you the definitive answer you need but I would not have thought you would need a licence; any licences and fees due would have been ...
by hippy
Tue Nov 24, 2020 1:38 pm
Forum: General discussion
Topic: A modern alternative to ENC28J60
Replies: 7
Views: 319

Re: A modern alternative to ENC28J60

From what i understood the ENC424j600 interfaces to the raspberry pi via SPI, I think 100megabit is as far as it can go. Going into gigabit territory would mean needing the SPI to run on atleast a gigabit which is i dont think any raspberry pi can do for now. A device working at gigabit speeds does...
by hippy
Tue Nov 24, 2020 12:36 pm
Forum: General discussion
Topic: SysEx with p zero?
Replies: 1
Views: 64

Re: SysEx with p zero?

The Pi Zero should be able to do what you want. It should be possible to create a hardware MIDI Out connection with nothing more than a couple of resistors and a 5-way DIN socket. I would also have thought a Pi Zero operating in gadget mode should be able to supply the SysEx through USB. It would be...
by hippy
Tue Nov 24, 2020 12:23 pm
Forum: General discussion
Topic: Exagear x86 code simulatior
Replies: 21
Views: 491

Re: Exagear x86 code simulatior

I got Windows notepad.exe running on my Pi under Raspberry Pi OS after building and installing Box86 and installing the WINE intended for Twister OS - cd ~ wget https://twisteros.com/wine.tgz tar zxvf wine.tgz box86 /home/pi/wine/bin/wine notepad.exe Other things haven't worked quite so well but it'...
by hippy
Mon Nov 23, 2020 6:21 pm
Forum: Raspberry Pi 400
Topic: 8GB Version?
Replies: 17
Views: 734

Re: 8GB Version?

trejan wrote:
Mon Nov 23, 2020 4:37 pm
A mux chip would do it but it needs to be designed for the SD interface and be able to handle the voltage switching.
Yup. If it were done I would assume they would do that.
by hippy
Mon Nov 23, 2020 4:48 pm
Forum: General discussion
Topic: Raspberry po USB ports and compatibility with launchbox
Replies: 2
Views: 111

Re: Raspberry po USB ports and compatibility with launchbox

Yes, you can add powered and bus-powered USB hubs to a Pi.

"Launch box" - No idea.
by hippy
Mon Nov 23, 2020 4:42 pm
Forum: Raspberry Pi 400
Topic: Raspberry Pi 400 wiringpi issue
Replies: 4
Views: 214

Re: Raspberry Pi 400 wiringpi issue

Rather than adding a new identifier every time a new Pi arrives it would be better if someone could rework the identifying codes to use SoC type to default to how things likely are. That won't resolve all maintenance issues but will make updates and failures less frequent. If deprecated Wiring Pi an...
by hippy
Mon Nov 23, 2020 4:25 pm
Forum: Raspberry Pi 400
Topic: 8GB Version?
Replies: 17
Views: 734

Re: 8GB Version?

If the onboard eMMC dies of old age then its buy a new Pi time, if an SD card dies just switch cards. The solution to that would be to fit eMMC and an SD Card socket. Wear the eMMC out and you simply move to using SD Card. PcDuino and other boards already offer that; the SD Card takes precedence wh...
by hippy
Mon Nov 23, 2020 4:14 pm
Forum: General discussion
Topic: Pi variable memory address
Replies: 4
Views: 184

Re: Pi variable memory address

Here instead of calling the sensor values by name i would like to tell my pi zero to get value of a variable (ex:temp or humidity) by giving it's RAM memory address (mostly hexadecimal value) like a pointer given for the ram address in ''C' programming. That is a flawed concept because the RAM addr...
by hippy
Mon Nov 23, 2020 3:52 pm
Forum: Troubleshooting
Topic: Reading from /dev/serial0 changes group from dialout to tty and read permisson is gone
Replies: 10
Views: 512

Re: Reading from /dev/serial0 changes group from dialout to tty and read permisson is gone

Eww. Why is code for reading a CO2 sensor messing about with this. getty is the process that handles the login prompt. If you don't give mh_z19.py the serial_console_untouched argument then it stops getty, does a reading and then starts getty even if it wasn't running before. Thanks for the analysi...
by hippy
Mon Nov 23, 2020 3:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can I connect this screen to Pi GPIO?
Replies: 3
Views: 230

Re: Can I connect this screen to Pi GPIO?

My plan B is to use SPI and see if I can install the drivers to increase frame rate. That would be my recommendation. It will be far easier to use a display designed for use with a Pi than try and use something which isn't if you don't have the prerequisite experience. You may find that SPI perform...
by hippy
Mon Nov 23, 2020 3:03 pm
Forum: Raspberry Pi 400
Topic: 8GB Version?
Replies: 17
Views: 734

Re: 8GB Version?

If the onboard eMMC dies of old age then its buy a new Pi time, if an SD card dies just switch cards. The solution to that would be to fit eMMC and an SD Card socket. Wear the eMMC out and you simply move to using SD Card. PcDuino and other boards already offer that; the SD Card takes precedence wh...
by hippy
Mon Nov 23, 2020 2:46 pm
Forum: Off topic discussion
Topic: Mount pi4 inside pc case
Replies: 5
Views: 311

Re: Mount pi4 inside pc case

My question : there is any 3d-printable case i can use for this ? Possibly and a Google search and perusal of 3D print sites may turn up something. It may however be easier and cheaper to use traditional hand-crafted DIY solutions, sticky tape, cardboard, balsa wood or plastic off-cuts. You could p...
by hippy
Mon Nov 23, 2020 2:33 pm
Forum: General discussion
Topic: Multiplexing 7 segment display with MAX7219
Replies: 4
Views: 169

Re: Multiplexing 7 segment display with MAX7219

MAX 7219 is for common cathode displays and TRU-7S2-80RAG is a common anode display, so they aren't compatible with each other. It would be recommended to use common cathode displays. Common anode displays can be used with a MAX7219 providing they are wired correctly but one loses the 'per digit' f...
by hippy
Mon Nov 23, 2020 2:16 pm
Forum: Python
Topic: Python Script stopps after some time...
Replies: 2
Views: 151

Re: Python Script stopps after some time...

If it is hanging, neither printing "Jannis: in" or "Jannis: out", suspicion would have to fall on 'bluetooth.lookup_name' never returning. What's your timeout value ? It's best to include full code as text rather than as a screen shot. If it should be returning but it isn't, it's always hard to say ...

Go to advanced search