Go to advanced search

by hippy
Mon Apr 22, 2019 2:08 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1885
Views: 72239

Re: Why Avoid BASIC on RPi?

For example, I fully expect RISC-V to be assimilated into systemd as a custom coprocessor necessary for faster booting. Since the only alternative way of booting a Linux system will involve an emulator written in Basic, running systemd will eventually be the dominant use for RISC-V hardware. This i...
by hippy
Mon Apr 22, 2019 2:01 am
Forum: General discussion
Topic: Rasp 3B+ 3.3V Suddenly stoped
Replies: 5
Views: 79

Re: Rasp 3B+ 3.3V Suddenly stoped

In a post moderator's post, these rare cases of sudden death related to 3.3V have been reported, but I need more certainties. Not sure how you mean by needing "more certainties". Spontaneous unexplained failures of 3B+'s does happen, has been reported, has been noted - See the Boot Problems Sticky ...
by hippy
Mon Apr 22, 2019 1:59 am
Forum: General discussion
Topic: Rasp 3B+ 3.3V Suddenly stoped
Replies: 5
Views: 79

Re: Rasp 3B+ 3.3V Suddenly stoped

Duplicate post -

viewtopic.php?f=63&t=238710 ( delete that )

I'll remove my post from there and add it here.
by hippy
Mon Apr 22, 2019 1:53 am
Forum: General discussion
Topic: Rasp 3B+ 3.3V Suddenly stoped
Replies: 1
Views: 52

Re: Rasp 3B+ 3.3V Suddenly stoped

Duplicate post. I've moved my previous reply from here to -

viewtopic.php?f=63&t=238709&p=1458745#p1458745
by hippy
Mon Apr 22, 2019 1:44 am
Forum: Python
Topic: Sending individual lines to an LCD display, bumping up the previous lines
Replies: 4
Views: 58

Re: Sending individual lines to an LCD display, bumping up the previous lines

You could have your two scripts writing files, or better some FIFO memory buffers or pipes, and have a third which collates both and updates the screen. That way this collating program knows what it has written to the screen, so can easily move the last up a line, while the other two have no care wh...
by hippy
Sun Apr 21, 2019 8:58 pm
Forum: General discussion
Topic: Is RPi a den of con artists?
Replies: 22
Views: 471

Re: Is RPi a den of con artists?

A post recommending Freelancer for help led to a thief who did not deliver one line of code and kept the half payment. If that was a recommendation on this forum link to the post and I am sure mods will take a looks and consider what to do or what they can do about that. I really don't like those "...
by hippy
Sun Apr 21, 2019 6:53 pm
Forum: Other projects
Topic: New Mobile OS made from scratch on a Raspberry Pi
Replies: 4
Views: 195

Re: New Mobile OS made from scratch on a Raspberry Pi

It all sounds quite good, and that it will run Android Apps is very appealing. But from, "To support our efforts we are making the OS available for pre-order soon", would I be correct in believing this will be a product one has to pay for ?
by hippy
Sun Apr 21, 2019 6:43 pm
Forum: Beginners
Topic: Selecting GPIO pins for LCD character screen
Replies: 9
Views: 119

Re: Selecting GPIO pins for LCD character screen

from the docs Regular text can be written to the CharLCD instance using the write_string() method. It accepts unicode strings (str in Python 3, unicode in Python 2). So a unicode string is expected but you don't have to preface the string with "u" I am not even sure the RPLCD program would understa...
by hippy
Sun Apr 21, 2019 3:01 pm
Forum: Beginners
Topic: Getting started with device drivers in raspberry
Replies: 3
Views: 57

Re: Getting started with device drivers in raspberry

From what little I have done with device drivers, you can develop installable device drivers on the Pi, for the kernel version already installed, just by using the kernel headers. That is you don't need to recompile the whole kernel. It seems to me you could develop your driver on a Pi, or Ubuntu, a...
by hippy
Sun Apr 21, 2019 2:26 pm
Forum: Beginners
Topic: Raspberry Pi game crashes out when button is pressed
Replies: 3
Views: 49

Re: Raspberry Pi game crashes out when button is pressed

When I run the program on my Raspbery Pi, it starts without issue but if I press a button the program crashes. I can see that the print statement is printed to the console before the application crashes. ... This should happen after the LED switches on but the LED never lights up. so, not so much "...
by hippy
Sun Apr 21, 2019 2:08 pm
Forum: Beginners
Topic: Selecting GPIO pins for LCD character screen
Replies: 9
Views: 119

Re: Selecting GPIO pins for LCD character screen

pcmanbob wrote:
Sun Apr 21, 2019 1:13 pm
3. this line does not look right

Code: Select all

lcd.write_string(u'Hello world!')
I believe that's specifying a unicode string for Python. That shouldn't be a problem but it might be worth taking the "u" out.
by hippy
Sun Apr 21, 2019 1:56 pm
Forum: Beginners
Topic: Digital pin is configured as an input and pulled high
Replies: 7
Views: 104

Re: Digital pin is configured as an input and pulled high

If your sensor board needs 3V3 I would wire it like this - ___ .---.---.-------. 1 |O O| 2 | .|. .|. | 3 |O O| 4 Sensor | | | | | | 5 |O O| 6 .----------. | |_| |_| | 7 |O O| 8 | 3V3 O |--' | | .---|---- 9 |O O| 10 | A-B O |------^---|---|---|--- 11 |O O| 12 | B-A O |----------^---|---|--- 13 |O O| ...
by hippy
Sun Apr 21, 2019 1:40 pm
Forum: Beginners
Topic: Digital pin is configured as an input and pulled high
Replies: 7
Views: 104

Re: Digital pin is configured as an input and pulled high

"The open collector outputs are typically supplied on a flying lead or connector block. See below for connection details. Once a vehicle is detected, GPIO pins 1 and 2 will be pulled low momentarily, depending on direction of travel." Excellent diagram. Your Q1 and Q2 transistors are effectively el...
by hippy
Sun Apr 21, 2019 1:13 pm
Forum: Beginners
Topic: How to calculate resistors...
Replies: 49
Views: 766

Re: How to calculate resistors...

There are lots of ideas of things I'd like to make - but I have to fix my electronics concepts and move forward and deeper from there. Not necessarily. You have already proven that a 1K resistor for your LED is bright enough and draws an insignificant current from whatever is driving that, so you d...
by hippy
Sun Apr 21, 2019 12:57 pm
Forum: Beginners
Topic: Digital pin is configured as an input and pulled high
Replies: 7
Views: 104

Re: Digital pin is configured as an input and pulled high

So when the sensor is not reading anything the GPIO pin will read as low or 0 volts as it is being pushed. When the sensor detects a change in the magnetic filed we need to have a relay which defines the signal as being pulled and show a voltage ( as long as i use a voltage related GPIO pin ). No n...
by hippy
Sun Apr 21, 2019 12:45 pm
Forum: Beginners
Topic: Selecting GPIO pins for LCD character screen
Replies: 9
Views: 119

Re: Selecting GPIO pins for LCD character screen

There are many tutorials for using LCD character displays with the Pi but the ones I've seen just say "use these pins" and don't say why those pins were selected or what other pins you can use The ones you suggest are usually chosen because they are all up at one end of the GPIO connector and not u...
by hippy
Sun Apr 21, 2019 12:31 pm
Forum: Other projects
Topic: Is this project feasible with a Pi?
Replies: 1
Views: 35

Re: Is this project feasible with a Pi?

xRipx wrote:
Sun Apr 21, 2019 4:57 am
What are my options here?
Buy a PC which runs Windows 98 or will run the games you want to play.
by hippy
Sun Apr 21, 2019 12:18 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 157
Views: 2791

Re: ScriptBasic

ScriptBasic wrote:
Sun Apr 21, 2019 7:34 am
Manipulating raw memory is always fun.
And potentially dangerous. I am waiting to see if anyone ever does maliciously slip some code into a program people use which will destroy Pi hardware, bricks or permanently write-protects SD cards.
by hippy
Sun Apr 21, 2019 11:57 am
Forum: General discussion
Topic: Push button detection
Replies: 4
Views: 133

Re: Push button detection

Because I'm sharing the gpio pin with an other program. GPIO pins are automatically shared between every program; you don't have to free it up. In fact it's what I consider to be a major flaw with Pi GPIO interface access; that any program can alter any GPIO and can mess-up what other programs rely...
by hippy
Sun Apr 21, 2019 11:48 am
Forum: Beginners
Topic: Digital pin is configured as an input and pulled high
Replies: 7
Views: 104

Re: Digital pin is configured as an input and pulled high

i'm no hardware expert is what does mean when they are saying the digital pin needs to be pulled high as an input and more importantly is a RPI capable of this? What they are probably saying is the sensor works like a push button which can short a GPIO pin down to 0V - 3V3 ------) GPIO ------) )---...
by hippy
Sun Apr 21, 2019 11:33 am
Forum: Troubleshooting
Topic: Why do I receive unreadable data via serial Port on Raspberry Pi?
Replies: 3
Views: 61

Re: Why do I receive unreadable data via serial Port on Raspberry Pi?

B0naparte wrote:
Fri Apr 19, 2019 2:14 pm
port = serial.Serial("/dev/ttyAMA0", baudrate=115200, timeout=3.0)
Doesn't ttyAMA0 normally connect to the Wi-Fi/Bluetooth chip on a "Pi 3" ?

Maybe try /dev/ttyS0 or, preferably, /dev/serial0.
by hippy
Sun Apr 21, 2019 10:50 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1885
Views: 72239

Re: Why Avoid BASIC on RPi?

I'm with the idea of adding instructions to a ISA than are of benefit to VMs in general. I would be appauled if they were tailored to JVM and turned out to not be much use to others. I wouldn't be worried about extensions tailored to a specific language and no use to anyone else provided they were ...
by hippy
Sun Apr 21, 2019 1:16 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 157
Views: 2791

Re: ScriptBasic

I would suggest looking at Rpi.GPIO source code (*) which has C for accessing /dev/gpiomem then shows how to twiddle with the actual GPxxxn registers etc. Then you can implement directly in your own coded library rather than have to rely on someone else's. Something like - int Init() { int fd; if ((...
by hippy
Sun Apr 21, 2019 12:19 am
Forum: Python
Topic: python to binary file from ubuntu
Replies: 2
Views: 84

Re: python to binary file from ubuntu

What exactly do you mean by a "python binary file" ? Python doesn't really generate binary files like a traditional compiler would; you take your source code from one system to another and, so long as Python is installed, you just run it by pointing Python at the source code, eg "python myprog.py". ...
by hippy
Sun Apr 21, 2019 12:09 am
Forum: General discussion
Topic: STICKY: Pi 3 A+
Replies: 132
Views: 28359

Re: STICKY: Pi 3 A+

Just curious how possible it would be, as the compelling need and demand is certainly present. It could be possible but I'm not convinced there is either compelling need or demand, that there would be any real gain from doing it, or there would be a business case for it. I also think there would be...

Go to advanced search