Go to advanced search

by Bottersnike
Thu Dec 08, 2016 4:38 pm
Forum: Bare metal, Assembly language
Topic: RPi 2 Assembly Framebuffer
Replies: 10
Views: 3496

Re: RPi 2 Assembly Framebuffer

Thank's a ton. I've just tested the code and it works perfectly!
by Bottersnike
Mon Dec 05, 2016 10:30 pm
Forum: Bare metal, Assembly language
Topic: RPi 2 Assembly Framebuffer
Replies: 10
Views: 3496

Re: RPi 2 Assembly Framebuffer

Thanks. I'm on my phone at the moment but when I get a chance I'll pop in those lines and see if that fixes it.
by Bottersnike
Mon Dec 05, 2016 4:50 pm
Forum: Bare metal, Assembly language
Topic: RPi 2 Assembly Framebuffer
Replies: 10
Views: 3496

Re: RPi 2 Assembly Framebuffer

The code I am using is http://www.cl.cam.ac.uk/projects/raspbe ... n01.tar.gz just every time a peripheral address startx with 0x20 I've replaced it with 0x3F so that it works on my pi 2. Other than that that is the exact code that I am using.
by Bottersnike
Sun Dec 04, 2016 9:59 am
Forum: Bare metal, Assembly language
Topic: RPi 2 Assembly Framebuffer
Replies: 10
Views: 3496

RPi 2 Assembly Framebuffer

I've been following along with BakingPi on my pi 2 (changing the peripheral address from 0x20000000 to 0x3F000000 when I need to) but now I'm stumped at using the GPU. I've tried using the complete lesson (with address modification) and the screen does load - the rainbow disappears and the screen go...
by Bottersnike
Sun Oct 23, 2016 8:50 am
Forum: Python
Topic: python function code for blink LED issue
Replies: 8
Views: 3645

Re: python function code for blink LED issue

I'm on my phone so I can't test this, but I think the following should work: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) GPIO.setup(11, GPIO.OUT) speed = input("Enter length of each blink (second): ") times = input("Enter total number of times to blink: ") pr...
by Bottersnike
Sun Oct 23, 2016 8:10 am
Forum: Python
Topic: makefiles and IDLE
Replies: 2
Views: 659

Re: makefiles and IDLE

The python IDLE is not really designed for that. On the other hand, I use geany which allows me to edit multiple files in one window, but more importantly, you can customise the build instructions to run the command

Code: Select all

make
To install geany, use

Code: Select all

sudo apt-get install geany
by Bottersnike
Thu Sep 01, 2016 8:20 am
Forum: Automation, sensing and robotics
Topic: Ultrasonic sensor measure
Replies: 9
Views: 2039

Re: Ultrasonic sensor measure

The only two things I can think of are the following:
  • Have you double checked the resistor values?
  • If the resistors are okay, have you tried getting a second sensor and testing with that. In my experience of getting HC-SR04s from cheap Chinese vendors, they can often be a bit dodgy.
by Bottersnike
Wed Aug 31, 2016 9:10 am
Forum: Automation, sensing and robotics
Topic: Motor Controller or H-Bridge
Replies: 3
Views: 908

Re: Motor Controller or H-Bridge

Okay, thanks. I'll probably opt for the H-Bridge chip as I have plenty of stripboard lying around and I'm trying to make the cheapest robot as I can. I had seen just the chip on the top of the board but I was unsure if there were any components on the reverse side.
by Bottersnike
Wed Aug 31, 2016 8:22 am
Forum: Automation, sensing and robotics
Topic: Motor Controller or H-Bridge
Replies: 3
Views: 908

Motor Controller or H-Bridge

I'm planning to build a small robot using a pi, but I'm unsure whether to get a cheap motor controller ( https://www.amazon.co.uk/Ryanteck-Raspberry-Motor-Controller-Board-Black/dp/B00HQ20H6W ) or get a much cheaper H-Bridge chip ( https://www.amazon.co.uk/TOOGOO-L293D-Stepper-Motor-Driver/dp/B00UBO...
by Bottersnike
Mon Aug 22, 2016 2:48 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 Getting Hot
Replies: 3
Views: 1322

Raspberry Pi 3 Getting Hot

Recently, I have been seeing the orange square in the top right corner indicating overheating, and sure enough, the pi reported about 85-95'C. Having put heat sinks on my Pi, I haven't seen much of a decrease. I have a 12V ~4inch diameter fan and when I power that off the Pi's 5V supply the Pi cools...
by Bottersnike
Sat Aug 20, 2016 7:13 pm
Forum: Staffroom, classroom and projects
Topic: Using the BBC microbit with the Pi
Replies: 25
Views: 8374

Re: Using the BBC microbit with the Pi

I've got an IDE designed to program the Micro:Bit on a Pi.
It should be in my signiture but ig I change it, you can find it at https://bottersnike.github.io/Micro-Pi
by Bottersnike
Fri Aug 19, 2016 7:30 am
Forum: Other projects
Topic: Control 5m of WS2812 LED Strip: Wire it up
Replies: 1
Views: 2741

Re: Control 5m of WS2812 LED Strip: Wire it up

I had a similar problem a while back. What I ended up doing was having three transistors coming out of my pi's GPIO which connected onto R, G, and B and I then connected the GND of my power supply to the GND pin on the strip. The transistors use the GPIO to switch the 9v going through them and into ...
by Bottersnike
Thu Aug 18, 2016 7:35 pm
Forum: Python
Topic: Help with a simple program
Replies: 4
Views: 1054

Re: Help with a simple program

You could also create a config file with the following layout:

[STORE NAME]
paper1: 46
papre2: 473
[SOME NAME]
paper1: 34
paper2: 932

Then just parse that file. I'm on my phone right now but if you want I can get some code off my pi that will parse that sore of file.
by Bottersnike
Thu Aug 18, 2016 7:28 pm
Forum: Python
Topic: Python 3.5?
Replies: 6
Views: 2761

Re: Python 3.5?

I build 3.5 a while back. I remember it being rather simple, but I did have some problems with having 3 python installs and eventually removed it. I don't have the built files anymore but if you just google it all the docs are available on the python site.
by Bottersnike
Thu Aug 18, 2016 7:23 pm
Forum: Python
Topic: OpenCV
Replies: 2
Views: 703

Re: OpenCV

Read that article again. It has instructions for python2.7 on it.
by Bottersnike
Thu Aug 18, 2016 7:13 pm
Forum: Other projects
Topic: Cheap Raspberry Pi Robot
Replies: 1
Views: 847

Cheap Raspberry Pi Robot

I'm planning on building a robot with the intent of possibly going into PiWars but I've hit a problem. I've build a robot using Lego and a pi brain (using Bluetooth to talk to an NXT) but now I want to go one step further. I have access to a laser cutter to create parts but I don't know what I'll ne...
by Bottersnike
Thu Aug 11, 2016 5:01 pm
Forum: Troubleshooting
Topic: Pi Not Accepting 5V
Replies: 19
Views: 2800

Re: Pi Not Accepting 5V

Update 2: I just experimented using the other 5v pin to test from and it took 6v from my PSU to get my pi up to 5.1v!! Having just tested the voltage with a load (the Pi :D) it is the cables causing the voltage drop. I also tested the resistance of the cables (1.5‎Ω) which would equate to about that...
by Bottersnike
Thu Aug 11, 2016 4:44 pm
Forum: Troubleshooting
Topic: Pi Not Accepting 5V
Replies: 19
Views: 2800

Re: Pi Not Accepting 5V

Update: I just powered my pi off the GPIO pins. I provided exactly 5v as measured my my meter (at the pi end) using heavy duty cable designed for 240v. My pi couldn't get past the initial full rainbow screen. Amps wise I was allowing 2500mA and my pi was drawing 230mA so that's not the problem. I di...
by Bottersnike
Thu Aug 11, 2016 6:13 am
Forum: Troubleshooting
Topic: Pi Not Accepting 5V
Replies: 19
Views: 2800

Re: Pi Not Accepting 5V

If the usb connector is a problem, would it be worth powering the pi through the 5v gpio pin?
by Bottersnike
Wed Aug 10, 2016 5:16 am
Forum: Troubleshooting
Topic: Pi Not Accepting 5V
Replies: 19
Views: 2800

Re: Pi Not Accepting 5V

Just because there's 5V at the PSU end of the cable doesn't mean there's 5V at the Pi end. There are a lot of bad USB cables that struggle with 500mA let alone the 1500mA+ needed for the Pi3. These bad cables tend to be very thin and so have a relatively high resistance. at 0.1ohm/m for a 1m cable ...
by Bottersnike
Tue Aug 09, 2016 8:28 pm
Forum: Troubleshooting
Topic: Pi Not Accepting 5V
Replies: 19
Views: 2800

Re: Pi Not Accepting 5V

As I said, I plugged it I to my desktop power supply which was outputting 5v (I checked it with a multimeter at the croc clip end of the cables) so it's not my power to the pi. My only idea is that I have a faulty voltage regulator which I really hope I don't.
by Bottersnike
Tue Aug 09, 2016 7:00 pm
Forum: Troubleshooting
Topic: Pi Not Accepting 5V
Replies: 19
Views: 2800

Pi Not Accepting 5V

Recently, my pi 3B (in fact, I think since I got it) has been showing the low voltage symbol. Today I went to fix it, only to find that my usb cable was outputting 5v at 2A. Naturally, I plugged my pi into my desktop power supply connecting the croc clips onto the pi's micro usb. Still I got the low...
by Bottersnike
Wed Aug 03, 2016 6:08 pm
Forum: Beginners
Topic: How to install ffmpeg on Raspberry Pi 2
Replies: 21
Views: 116096

Re: How to install ffmpeg on Raspberry Pi 2

dtb1987 wrote:How do i change the command to ffmpeg?
You can create an alias. If you type

Code: Select all

alias ffmpeg=avconv
into a terminal them ffmpeg wil execute avconv. To automate that, edit your

Code: Select all

~/.bashrc
file and just add

Code: Select all

alias ffmpeg=avconv
to the end.
by Bottersnike
Mon Jul 04, 2016 7:12 am
Forum: Teaching and learning resources
Topic: Micro:Pi - An IDE for the BBC Micro:Bit
Replies: 0
Views: 1321

Micro:Pi - An IDE for the BBC Micro:Bit

Yes, I know that I've allready made a post with this title, but that was for a rather old version of Micro:Pi and I was unsure if edits counted towards the boards ordering of topics. Anyway, Micro:Pi has gone through a series of remakes, most noticiably moving from pygame to GTK2. This means that th...
by Bottersnike
Thu Apr 28, 2016 10:06 pm
Forum: Python
Topic: how to run main loop independent code?
Replies: 1
Views: 524

Re: how to run main loop independent code?

Okay, I'm on my phone, so I can't post any code, but what you need to do is create a threaded function and a list. Every time you want to restart the timer, you iterate through the list killing every thread in it, then you open the really, start a new timer thread to close the relay after ten second...

Go to advanced search