Go to advanced search

by nickorossa
Sun Oct 30, 2016 4:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi-3 - Power via GPIO
Replies: 14
Views: 17942

Re: RPi-3 - Power via GPIO

Well now, someone certainly was burning the candle at both ends last eve now weren't they Nickorossa....Huh... lol
No idea what you mean by this; can only assume you're mixing me up with someone else.

Nick.
by nickorossa
Sun Oct 30, 2016 12:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi-3 - Power via GPIO
Replies: 14
Views: 17942

Re: RPi-3 - Power via GPIO

My multi-meter readings show 4.98-5.01 as the voltage being supplied to the Pi.

Temperature on the heat sync bit of the LM2576 is around 35 degreesC.

Nick.
by nickorossa
Sun Oct 30, 2016 11:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi-3 - Power via GPIO
Replies: 14
Views: 17942

Re: RPi-3 - Power via GPIO

Hi

Heatsink, no not yet.
Yes, it should be.
12v 6a gel battery, so should be man enough for the job.

Nick.
by nickorossa
Sun Oct 30, 2016 9:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi-3 - Power via GPIO
Replies: 14
Views: 17942

Re: RPi-3 - Power via GPIO

The power circuit I'm looking to drive it with is based on a LM2576T-5, with a 2A fuse in line of the power feed. Connecting to the GPIO for power, the PI appears to try and start, puts up the colour screen image then "resets" and tries again. I saw some articles a while back (can't find it now) abo...
by nickorossa
Sun Oct 30, 2016 8:17 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi-3 - Power via GPIO
Replies: 14
Views: 17942

RPi-3 - Power via GPIO

Hi

Can someone confirm a RPi-3 can be powered on and run via GPIO (pins 4 & 6)?

Thanks.

Nick.
by nickorossa
Sun Oct 09, 2016 8:28 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Hi

Thanks for the update. I'll update the sleep accordingly.

Many thanks for your help with getting it working.

Nick.
by nickorossa
Wed Sep 28, 2016 8:08 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Hi Thanks a lot for your help. I think the code is working fine and the issue is probably some instability/interference in my setup either in the nunchuck, the wiring or just the load on the RPi3. I've borrowed a nunchuck from a friend and that seems to work much better. Maybe the connector or somet...
by nickorossa
Tue Sep 27, 2016 9:32 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Hi
This is the thread where timing issues were discussed that I referred to in a previous post.
viewtopic.php?f=44&t=148605
Nick.
by nickorossa
Tue Sep 27, 2016 9:24 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Sometime when running, it will start off with sensible values; then change to junk values and then throw an exception.


I am using Eclipse to develop the java code; and I'm wondering if that may be causing some degree of interference/timing issue.


Nick.
by nickorossa
Tue Sep 27, 2016 9:20 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Hi Definitely progress, but I think there must be some sort of timing issue going on. I put the code piece in and the buffer output values were as follows. Buf = [B@1961c42 - 0 = -2 : 1 = -2 : 2 = -2 : 3 = -2 : 4 = -2 : 5 = -2 Buf = [B@1961c42 - 0 = -2 : 1 = -2 : 2 = -2 : 3 = -2 : 4 = -2 : 5 = -2 Bu...
by nickorossa
Tue Sep 27, 2016 4:07 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Hi

Ah, I assumed you meant for me to check I'd connected it correctly.

This link has the connection details.
https://computers.tutsplus.com/tutorial ... -cms-20984

I used an adapter which made it a little easier.

Nick.
by nickorossa
Tue Sep 27, 2016 8:36 am
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Hi Thanks for taking a look. On the connecting the Nunchuck, its just the 4 wires. I am plugging the Nunchuck into an adapter and then into a breadboard. In Python it seems to work perfectly, so its almost certainly going to be an issue with my dodgy Java code. I tried increasing the sleep time, but...
by nickorossa
Mon Sep 26, 2016 8:10 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

I'd previously found the code for I2CWiiMotionPlusExample, but I get the following error when trying to run it. java.io.IOException: Error reading from I2CDevice on I2CBus '1' ('/dev/i2c-1') at address 0x52 to address 0x0. Got '-1'. I didn't really understand some of what the code was doing especial...
by nickorossa
Mon Sep 26, 2016 8:06 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Sample output after changes that you suggested. Device address = 82 Buf = [B@5ede7b - 0 = -1 : 1 = -1 : 2 = -1 : 3 = -1 : 4 = -1 : 5 = -1 Buf = [B@5ede7b - 0 = -1 : 1 = -1 : 2 = -1 : 3 = -1 : 4 = -1 : 5 = -1 Buf = [B@5ede7b - 0 = -1 : 1 = -1 : 2 = -1 : 3 = -1 : 4 = -1 : 5 = -1 Buf = [B@5ede7b - 0 = ...
by nickorossa
Mon Sep 26, 2016 7:59 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Re: Wii Nunchuck using Java

Hi Thanks for the reply. Apologies for the delay in responding, for some reason I'm not getting notifications on replies. To be honest I've been round and round in circles on this and some sample code found on the net didn't work; hence the trying to go back to basics. The code I wrote whilst based ...
by nickorossa
Wed Sep 21, 2016 9:28 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3354

Wii Nunchuck using Java

Hi I have a Wii Nunchuck setup with my RaspberryPi3 which is working correctly. If I use the following Python code, it runs and the values are read correctly and make sense to what I'm doing with the Nunchuck.. import smbus import time bus = smbus.SMBus(1) bus.write_byte_data(0x52,0x40,0x00) time.sl...
by nickorossa
Sat Sep 10, 2016 11:16 am
Forum: Java
Topic: Java - Playing WAV or MP3 files
Replies: 1
Views: 1163

Re: Java - Playing WAV or MP3 files

Ok. I think I may have finally cracked it.

Switching to an Oracle JRE rather than the default OpenJDK and the exact same code works.

Looks like my issue was with OpenJDK and not the libraries etc.

Nick.
by nickorossa
Sat Sep 10, 2016 9:47 am
Forum: Java
Topic: Java - Playing WAV or MP3 files
Replies: 1
Views: 1163

Java - Playing WAV or MP3 files

Hi Guys, Trying to play sound files using a RPi3 using Java is slowly driving me around the bend. I've been going round in circles trying to get various libraries to work. AudioSystem examples either play no sound or give LineUnavailableException Generally Javazoom.jl.player.Player examples play no ...
by nickorossa
Sat Sep 10, 2016 7:39 am
Forum: Java
Topic: JLayer doesn't work [JAVA]
Replies: 7
Views: 2690

Re: JLayer doesn't work [JAVA]

Hi

Any chance you can post a simple code snippit?

I'm having lots of issues trying to play MP3 files on a R-Pi3 using Java. The best I've managed to get is it sounding like its being said under water if it plays at all.

Thanks.

Nick.
by nickorossa
Sat Sep 29, 2012 3:25 pm
Forum: Off topic discussion
Topic: Lego Connectors
Replies: 9
Views: 2260

Re: Lego Connectors

Hi

Thats sort of how I lost a load of them 25 years ago when trying to make the robot before! :(

Nick.
by nickorossa
Sat Sep 29, 2012 9:12 am
Forum: Off topic discussion
Topic: Lego Connectors
Replies: 9
Views: 2260

Re: Lego Connectors

Hi I think I found some connectors that will do the job in Maplin. They are simple crimps that are the right size, but they are a bit weird to wire up. I have a couple of cables but even cutting them in half I'd still be short; which is due to me doing exactly that some 25 years ago when I did somet...
by nickorossa
Fri Sep 21, 2012 2:05 pm
Forum: Off topic discussion
Topic: Lego Connectors
Replies: 9
Views: 2260

Re: Lego Connectors

Hi

The parts I'm looking for are too old to be on there. Tried searching but it didn't come back with anything.

I may head over to Maplin and see what I can find to "bodge" together.

N.
by nickorossa
Fri Sep 21, 2012 10:15 am
Forum: Off topic discussion
Topic: Lego Connectors
Replies: 9
Views: 2260

Re: Lego Connectors

Hi

I came across that site when searching earlier, but the ones I want are out of stock :(

Given the number of cables I want to make up it works out quite expensive too.

Thanks.

Nick.
by nickorossa
Fri Sep 21, 2012 10:03 am
Forum: Off topic discussion
Topic: Lego Connectors
Replies: 9
Views: 2260

Lego Connectors

Hi

I have several lego motors of the old 4.5v technic variety, but very few cables.

Anyone know of a connector that matches the two main pins on these and where I can get them.
Image


Thanks.

Nick.
by nickorossa
Sun Sep 16, 2012 7:52 pm
Forum: Staffroom, classroom and projects
Topic: Usborne Electronic Workshop
Replies: 11
Views: 2942

Re: Usborne Electronic Workshop

I have been translating the shopping list int he book to parts I can get now. Mostly easy but the relays were the most difficult. Winter project coming on :D I am thinking that the robot is big enough to carry the Pi with the whole lot being powered by a rechargeable battery pack. Possibly be able ...

Go to advanced search