Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Neopixels with Lynxmotion SSC-32U servo controller and Raspb
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Neopixels with Lynxmotion SSC-32U servo controller and Raspb

by iansmoyes on Mon Sep 07, 2020 1:15 pm

Hello.

I'm new here and, being honest, a bit slow on the uptake and inexperienced.

I am trying to teach myself, from scratch, how to design and implement a hexapod robot.

I've been lurking and reading some of the posts and responses and thought maybe I should start by saying that I don't accept, from anyone, that my lack of experience is an excuse for someone with more experience to snear, or otherwise verbally abuse me. If anyone should indulge such behaviour towards me I shall delight in retaliating by calling your mother names. I short, if you have nothing helpful to say, shut up. On the other hand I would be very grateful for any assistance.

I have a Raspberry Pi 4 (4 Gb), a pimoroni pan/tilt HAT, this one (https://shop.pimoroni.com/products/pan- ... 2408353287) and an Adafruit Neopixel strip, this one (https://shop.pimoroni.com/products/neop ... 7436712071).

I've been programming the Neopixels through the pan/tilt HAT very successfully but I feel my next acquisition might be a Lynxmotion SSC-32U servo controller, which I'll need to control my hexapod, in due course.

Has anyone used a SSC-32U to control Neopixels? Is that even possible?

My thanks in advance.

iansmoyes
 
Posts: 11
Joined: Mon Sep 07, 2020 12:59 pm

Re: Neopixels with Lynxmotion SSC-32U servo controller and R

by adafruit_support_bill on Mon Sep 07, 2020 1:37 pm

I have an SSC32. I haven't tried using to drive Neopixels, but it is based on an Atmega 168 microcontroller, which is the same chip as the original Arduino. So it could be re-programmed to drive neopixels. It is a bit memory constrained with only 1K of SRAM. It would probably handle up to about 150 pixels.

Assuming that Lynxmotion is still putting these in sockets, you could swap out the Atmega168 for an Atmega328 which is pin compatible, but has twice as much SRAM.
https://www.adafruit.com/product/123

The problem would be trying to drive Neopixels and servos at the same time. Neopixel timing requirements are very tight and the code needs to disable interrupts while writing to the strip. This usually results in erratic servo movement which would really mess up the kinematics of your hex.

A better approach might be to offload the Neopixel duties to something like a Trinket M0.
https://www.adafruit.com/product/3500

adafruit_support_bill
 
Posts: 79033
Joined: Sat Feb 07, 2009 10:11 am

Re: Neopixels with Lynxmotion SSC-32U servo controller and R

by iansmoyes on Mon Sep 07, 2020 2:01 pm

Hi there,
Thanks for your reply. The ATmega328 "upgrade" sounds like a great idea! I had a look at the product page for the trinket & it says it's not Linux compatible. :-(

This Linux thing can be a double edged sword. [sigh]

iansmoyes
 
Posts: 11
Joined: Mon Sep 07, 2020 12:59 pm

Re: Neopixels with Lynxmotion SSC-32U servo controller and R

by adafruit_support_bill on Mon Sep 07, 2020 3:08 pm

The Trinket M0 won't run Linux, but you can program it from a Linux system.

adafruit_support_bill
 
Posts: 79033
Joined: Sat Feb 07, 2009 10:11 am

Re: Neopixels with Lynxmotion SSC-32U servo controller and R

by iansmoyes on Mon Sep 07, 2020 4:04 pm

Right, I had another look and, for the price of a pack of beer I can have a new toy to experiment with.

MUCH obliged for your advice. Have a pint for me. :-)

iansmoyes
 
Posts: 11
Joined: Mon Sep 07, 2020 12:59 pm

Re: Neopixels with Lynxmotion SSC-32U servo controller and R

by iansmoyes on Sun Sep 27, 2020 1:30 pm

So, I bought one of those TrinketM0 thingies. Wow! Love it! Lots of fun playing with the internal pixel. Bit n bobs coming to allow me to wire up neopixels and i2c the TrinketM0 to my Pi. Including a new soldering iron; I "over-frolicked" my old one, in a shower of sparks.

Learning "How to i2c" seems a bit thin on the ground. Anyone have a good educational resource for "Here's how to use I2C to communicate between your Raspberry Pi 4 & your TrinketM0" for something similar please? :-)

iansmoyes
 
Posts: 11
Joined: Mon Sep 07, 2020 12:59 pm

Re: Neopixels with Lynxmotion SSC-32U servo controller and R

by adafruit_support_bill on Sun Sep 27, 2020 1:51 pm

The Trinket is an Arduino compatible processor, so this Pi to Arduino example should get you started: https://www.thegeekpub.com/18263/raspbe ... unication/

adafruit_support_bill
 
Posts: 79033
Joined: Sat Feb 07, 2009 10:11 am

Re: Neopixels with Lynxmotion SSC-32U servo controller and R

by iansmoyes on Sun Sep 27, 2020 4:45 pm

Thanks chap. :-)

iansmoyes
 
Posts: 11
Joined: Mon Sep 07, 2020 12:59 pm

Please be positive and constructive with your questions and comments.