Go to advanced search

by guzunty
Sat Aug 02, 2014 5:15 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

Hi Paul excellent news. You are most welcome.

May I ask which change got you going?
by guzunty
Fri Aug 01, 2014 11:35 am
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

My test servo is a Cirrus CS-60 BTW.

I also tested with a Hi-TecHS-325HB.

Both are OK at divisor values of 50, 80 and 100.
by guzunty
Fri Aug 01, 2014 11:31 am
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

It doesn't make any difference on the servo I'm using to test here, but servos do differ quite widely in what they will accept. The value of 50/80 is a divisor for the PI's hardware clock. It controls both the rate at which pulses are sent to the servo and the width of the pulse for a given value. T...
by guzunty
Fri Aug 01, 2014 10:01 am
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

BTW, a general comment; I don't recommend running servos directly from the 5v pin on the Guzunty. The motors generate a lot of noise and while I haven't seen the Pi itself reboot, it upsets USB peripherals that take their power from the Pi. Not saying you're doing that, Paul, just a tip for everyone...
by guzunty
Fri Aug 01, 2014 9:57 am
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

Hmmm, that is strange. You got the servo to twitch and then the above code didn't work. Probably a silly question, but you did remember to start the clock before calling the function? My test code looks like this: def main(): GZ.spi_set_width(2) GZ.clock_ena(0, 80) while True: for i in range(16): co...
by guzunty
Thu Jul 31, 2014 5:50 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

I had success with this function definition:

Code: Select all

def control_servo(servo_num, posn):
  value = struct.pack('BBBB', servo_num, posn, 0, 0)
  [tmp] = struct.unpack('i', value)
  GZ.spi_write(tmp)
There's probably a neater solution though.
by guzunty
Thu Jul 31, 2014 3:49 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

Try packing 4 bytes, with zero in the upper two.

now unpack with format 'i' and try passing that. If that doesn't work for you, I'll fire up Python myself and take a look.

Pythons variables are all implemented in C under the hood, so something is bound to work.

best,

Derek
by guzunty
Thu Jul 31, 2014 1:58 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

GZ.spi_write(values)
Possibly GZ.spi_write(values.unpack(">I")) ?

Looking at the struct library docs, probably not, but you still need to get python to treat it as an unsigned int. There will be a way. :)

D.
by guzunty
Thu Jul 31, 2014 1:17 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

Forgot the second question. To write to the outputs, you simply pass 4 in the first byte, 0 to 3 being the 4 servos. The second byte then becomes the bit pattern for the outputs instead of a desired servo position. Output 0 is in the lowest numbered bit, I believe, so 0x01 will do the trick. You mig...
by guzunty
Thu Jul 31, 2014 1:06 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

Hi Paul, First the good news, when you turned on the clock and the servo responded, it shows that it is getting pulses. I'm not a Python expert, but you do need to send the servo number and the required position in a single spi write operation. Otherwise, the input register resets between writes and...
by guzunty
Sat Jul 26, 2014 7:51 am
Forum: Troubleshooting
Topic: Model B+ USB Not Working
Replies: 69
Views: 27504

Re: Model B+ USB Not Working

I definitely had issues with the usb ports not being active on the B+, but that was using older SD card images that worked on older Pi models. I found that a clean Raspbian 2014-06-20 image definitely booted normally and enabled the ports. I'd recommend trying that again before moving on to other re...
by guzunty
Mon Jul 21, 2014 8:27 am
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

Curiosity satisfied. :)

Thanks Dom.
by guzunty
Sun Jul 20, 2014 8:14 am
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

I'm curious as to why NOOBS would have a duplicate /boot folder?

Seems like an unnecessary source of confusion?
by guzunty
Sun Jul 20, 2014 7:56 am
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

My B+ has always spontaneously rebooted. I was only able to reproduce the finger proximity effect when an HDMI cable was inserted. (Monitor didn't have to be on, go figure :) ) The patch resolves the reboot issue completely for me, including finger proximity issues both with and without HDMI cable p...
by guzunty
Sat Jul 19, 2014 9:45 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

Link is good. I can test all other models tomorrow.

Initial test on B+ is 100% positive.

Halt is successful. No reboot.

In addition, I now see the 10 ACT flashes pre-halt (which I have always assumed are disk syncs, right?)

These were previously missing with the B+

HTH,

Derek
by guzunty
Sat Jul 19, 2014 9:12 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

Link gives 400 error on both mac and windows

(I have models of all the above, so if you can get me a working link I can answer all the questions)
by guzunty
Sat Jul 19, 2014 2:50 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

@Alex, yes.

Thanks for checking the current, using that link should be safe enough until we know more.

Derek, out.
by guzunty
Sat Jul 19, 2014 2:45 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

@Joan, Those signals are definitely reserved for accessing I2C EEPROMs mounted on peripheral cards. I believe these are disabled when the SOC starts anyhow. Undoubtedly, but what happens to them when the Pi enters the Halt state? But of course, it should be robust for when there are no peripherals p...
by guzunty
Sat Jul 19, 2014 2:34 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

@Joan,

Are you seeing the spontaneous reboot? Are you saying that enabling pulldowns on those pins fixed the problem?
by guzunty
Sat Jul 19, 2014 2:18 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

@Joan, could be. The ID_SC is not a signal defined in the Broadcom Peripherals manual, so I assume it is a signal defined on the RPi Schematic. Thus I couldn't find out more. Pull-up or not, the current configuration is demonstrably insufficient to prevent re-booting on some RPi's during halt. I'm h...
by guzunty
Sat Jul 19, 2014 1:38 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

I have a refinement to the pin 28 theory. Since the board does not reboot during normal use, even when touching pin 28, I believe that one of 2 possibilities remain; - There is a pull down resistor on that pin that gets disabled during halt and/or - The vector that is supposed to handle transitions ...
by guzunty
Sat Jul 19, 2014 8:12 am
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 14585

Re: Pi B+ won't shutdown. Which Port brings it back up?

Yes, I have been seeing this issue too. I first reported it in the 'Who's received their B+' topic, but everyone there shrugged their shoulders. Well, it appears to be real. I believe I have traced it to pin 28 - ID_SC. Pulling that to ground prevents the issue, for me anyway. Alex, can you try that...
by guzunty
Wed Jul 16, 2014 5:45 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 34497

Re: Guzunty Pi. New users start here.

Sure, you can combine it all together and save some mailing costs. :)
by guzunty
Wed Jul 16, 2014 1:24 pm
Forum: General discussion
Topic: Who's got their hands on a B+ so far?
Replies: 119
Views: 23270

Re: Who's got their hands on a B+ so far?

Just transplanted the card back to the 'B' it was cloned from. Halts correctly there. Very strange. @mikeerr, I tried a fresh raspbian image from yesterday and that had working ports but still had the halting issue. Maybe NOOBS is different in some way. I'll give it a try when I get half an hour. ED...
by guzunty
Wed Jul 16, 2014 1:05 pm
Forum: General discussion
Topic: Who's got their hands on a B+ so far?
Replies: 119
Views: 23270

Re: Who's got their hands on a B+ so far?

Mine is:

Code: Select all

-rwxr-xr-x  1 root root   17824 Jul 16 06:41 bootcode.bin
(but I am seeing normal ACT behaviour except at shutdown)

Go to advanced search