Go to advanced search

by hippy
Tue Jun 18, 2019 4:34 pm
Forum: Advanced users
Topic: Cluster of 15 Raspberry Pi power supply
Replies: 1
Views: 75

Re: Cluster of 15 Raspberry Pi power supply

I would recommend a ready made commercial power supply. Something like this, though it's not a recommendation - https://www.amazon.com/Universal-Regulated-Transformer-Security-Computer/dp/B01IMPG94A You might want to make sure you have enough amps to run hard disks and other peripherals as well as t...
by hippy
Tue Jun 18, 2019 12:03 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

Vaiid syntax checking and informative error reporting is spoty. It's downright useless. It is arguably the worst things about ScriptBasic from a user's perspective, though there's so much to choose from. Error reporting in extension modules is even worse depending on the author. But those are run-t...
by hippy
Tue Jun 18, 2019 10:54 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

A developer who just wants to use ScriptBasic as a tool won't want to mess around with that and will just want to apt install it so they can get on with whatever project they are working on. That's a developer wearing a "user" hat. By "developer" I was meaning, had hoped to imply, someone who wants...
by hippy
Tue Jun 18, 2019 10:52 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

1. If your going to bother checking syntax and report an error, at least be verbose about it and not play let's solve the mystery. Needing to be more verbose is not the issue, consider - test.sb(1): error &H77:syntax error during checking the line and also noting that the syntax error so serious th...
by hippy
Tue Jun 18, 2019 10:09 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

The clone button in the repo does not give the right URL with the port number in it. Thanks for figuring that out. Finally got "git clone" to work and can build and install from that on my Pi. Can apt-get be used to install from a private server? (location option) Yes but it takes some work. With t...
by hippy
Mon Jun 17, 2019 8:10 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

I like the RPi as it forces the developer to be creative and not just throw more hardware at it to hide poor design. I suppose one could split the users I mentioned outside of industry into consumers ( surfers, gamers and streamers ), developers ( makers and programmers ), and learners. For the con...
by hippy
Mon Jun 17, 2019 7:30 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

I'm still trying to get my arms around what is the predominant use of the Raspberry Pi. With half of all Pi computers sold going into industry its main use could be defined as embedded controller. Outside that its main use I would say it is as a cheap Linux computer. It's used as a desktop replacem...
by hippy
Mon Jun 17, 2019 6:27 pm
Forum: Beginners
Topic: Ken's Labyrinth for linux
Replies: 13
Views: 274

Re: Ken's Labyrinth for linux

sudo apt-get install libsdl2-dev libsdl2-image-dev Thanks for that. It now builds for me, I can use ./ken and get the setup screen, but things go pear-shaped after that. wget http://s3.jspenguin.org/LAB3D-SDL-3.0-src.tar.gz tar -zxvf LAB3D-SDL-3.0-src.tar.gz cd LAB3D-SDL-3.0 sudo apt-get install li...
by hippy
Mon Jun 17, 2019 4:27 pm
Forum: General discussion
Topic: using Engergenie sockets with PIR motion Sensors
Replies: 3
Views: 106

Re: using Engergenie sockets with PIR motion Sensors

Energenie seem to supply datasheets for their products and those should reveal which pins are used and which remain available. Energenie tech support may be able to tell you if the dastasheets do not. You can connect other things to the Pi by soldering directly to the header pins underneath the boar...
by hippy
Mon Jun 17, 2019 3:23 pm
Forum: Troubleshooting
Topic: Espeak alsa issue
Replies: 5
Views: 138

Re: Espeak alsa issue

For applications like this I tend to build from source rather than apt install. Thanks for ther pointer. That worked for me, though I also stopped short of installing it - sudo apt-get install make autoconf automake libtool pkg-config git clone https://github.com/espeak-ng/espeak-ng.git cd espeak-n...
by hippy
Mon Jun 17, 2019 2:55 pm
Forum: Beginners
Topic: Ken's Labyrinth for linux
Replies: 13
Views: 274

Re: Ken's Labyrinth for linux

Is there some kind of generic guide to building things on raspbian? Or is this way easier than I think possibly? In my experience it's either simple or a journey through various 'circles of hell'. A lot depends on how well the installation process has been documented, whether for a Pi or something ...
by hippy
Mon Jun 17, 2019 1:47 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

I think it would be just as problematic with an IDE. Beyond the ongoing problem of ScriptBasic documentation, information and support being all over the place, with much of what there is outdated and no longer applicable, the main issue is getting ScriptBasic installed, up and running. There is no "...
by hippy
Mon Jun 17, 2019 1:08 pm
Forum: General discussion
Topic: can RPI-Zero work as RNDIS gadget while same time accepting USB mouse
Replies: 3
Views: 135

Re: can RPI-Zero work as RNDIS gadget while same time accepting USB mouse

There may be some means to do it using two Zeroes connected via their UART's, one as a USB host the other as a USB gadget.

There are also some 'USB host module' boards which it may be possible to connect to a Pi.
by hippy
Mon Jun 17, 2019 1:03 pm
Forum: Automation, sensing and robotics
Topic: Let's give voice to my robot... Speaker problem
Replies: 9
Views: 254

Re: Installing OpenCV

Just buy a piezo speaker w/ 32ohm and connect the gpios No; don't do that or you'll burn out the GPIO pin. You either need to use a high impedance piezo to limit current drawn, which means it will be quiet. Or you need an amplifier which allows more current through that piezo which makes it louder....
by hippy
Mon Jun 17, 2019 12:45 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 543
Views: 14596

Re: A Final Fibonacci Challenge

Heater wrote:
Mon Jun 17, 2019 12:44 pm
The hfibo.sb posted above is derived from my Javascript version. It is recursive.

The 1milfibo.sb above is from Airr apparently. It is iterative. That is the one I'm puzzling over
I presumed that was the un-rolled, non-recursive, optimised version. But I may be wrong.
by hippy
Mon Jun 17, 2019 12:40 pm
Forum: General programming discussion
Topic: A Final Fibonacci Challenge
Replies: 543
Views: 14596

Re: A Final Fibonacci Challenge

Anyone know where that 1milfibo.sb algorithm comes from? In terms of algorithmic expressiveness that scores almost zero. It's as impenetrable as if it were written in assembler. I thought it was derived from the JavaScript you presented - https://www.raspberrypi.org/forums/viewtopic.php?f=31&t=2402...
by hippy
Mon Jun 17, 2019 12:04 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

the "cleanup" branch has been merged into "master", so please use the master branch going forward. Thanks for the update. Building on my Pi from the sb-dev-master.zip seems to have worked using the same process I used to build from the sb-dev-cleanup.zip, with just one issue - MODULE sdbg: dll OK l...
by hippy
Mon Jun 17, 2019 1:20 am
Forum: Other projects
Topic: Wire GPIO into remote control PCB?
Replies: 7
Views: 194

Re: Wire GPIO into remote control PCB?

If I could throw on an RF transmitter with the protocols that would be awesome, but tricky It might not be too hard depending on what your experience is. It is possible to see what comes out of the transmitter or out of the receiver in the switch and determine the protocol used, replicate sending t...
by hippy
Sun Jun 16, 2019 5:38 pm
Forum: Troubleshooting
Topic: Espeak alsa issue
Replies: 5
Views: 138

Re: Espeak alsa issue

may be you should try following the tutorial here to get espeak working. https://www.dexterindustries.com/howto/make-your-raspberry-pi-speak/ espeak "Hello World" 2>/dev/null And all I get is silence. I suspect the 2> is simply hiding the numerous errors one gets without it. I have never managed to...
by hippy
Sun Jun 16, 2019 5:12 pm
Forum: Other projects
Topic: Wire GPIO into remote control PCB?
Replies: 7
Views: 194

Re: Wire GPIO into remote control PCB?

Sending RF to control remote mains switches is easy enough to do with just a dumb RF transmitter so long as one knows the protocol being used. It can be done with a simple microcontroller and a Pi should work if it can generate the required RF bit-stream with accurate enough timing. Another option m...
by hippy
Sun Jun 16, 2019 3:26 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

Somehow I knew this was going to be a world of pain: That about sums up ScriptBasic. What to do? No idea. I'm not a Linux or ScriptBasic expert. We are far away from an out of the box experience here... This works 'out of the box' for me on my Pi, and, yes I know there's probably a better way to do...
by hippy
Sun Jun 16, 2019 2:18 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

In my "gpio.bas" extension I have ... GLOBAL CONST ALT_OUTPUT = 1 But when I run ... IMPORT gpio.bas PRINT gpio::ALT_OUTPUT, "\n" That reports it as an "undef". How do I export a named constant out of an extension ? Solved: Don't include the GLOBAL. If one does it becomes available in the main progr...
by hippy
Sun Jun 16, 2019 1:25 pm
Forum: Python
Topic: Importing python code from a sub-folder
Replies: 6
Views: 186

Re: Importing python code from a sub-folder

I managed to do that. What I mean is that when I am running the read_sensors.py code I can't import the write_to_db.py which is in another directory. So what you were hoping for is, within "./read_sensors/read-sensors.py" you could have ... import ../../write_to_db.write_sensor as write def DoRead(...
by hippy
Sun Jun 16, 2019 1:14 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

ScriptBasic wrote:
Sat Jun 15, 2019 7:19 pm
Hippy,

How close are you to releasing the code for your GPIO interface? I would like to give it a try on ScriptBasic.
My latest version is attached.
sb-gpio.tar.gz
(13.27 KiB) Downloaded 13 times
by hippy
Sun Jun 16, 2019 12:44 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1102
Views: 27285

Re: ScriptBasic

Don't know if this helps, but on my Pi, with an extension created as "~/sb-dev-cleanup/extensions/gmp2", this is what I have to build it and then make that library available for scriba to use - cd ~/sb-dev-cleanup ./setup --module=gmp2 cp ./bin/mod/dll/gmp2.so /usr/local/lib/scriba/gmp2.so cp ./exte...

Go to advanced search