GithubHelp home page GithubHelp logo

SPI pins about exixe HOT 17 CLOSED

dekunukem avatar dekunukem commented on August 13, 2024
SPI pins

from exixe.

Comments (17)

dekuNukem avatar dekuNukem commented on August 13, 2024

According to the technical details, spi_buf[13] should be red, spi_buf[14] should be green, and spi_buf[15] should be blue.

Are you saying on your boards spi_buf[14] and spi_buf[15] are reversed? As in spi_buf[14] is blue and spi_buf[15] is green? If true this is very bizarre indeed, I have never had this issue myself.

Have you tried the Arduino examples with library? And which Arduino board are you using?

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

Arduino Nano being used.

Here is the code used to get a purple LED... left as original it's yellow.

`/*
exixe modules:
https://github.com/dekuNukem/exixe

library docs:
https://github.com/dekuNukem/exixe/tree/master/arduino_library

Demo 1: LED test
*/

#include "exixe.h"

// change this to the cs pin you're using
int cs_pin = 10;
exixe my_tube = exixe(cs_pin);

void setup()
{
my_tube.spi_init();
}

void loop()
{
my_tube.set_led(127, 127, 0); // purple
delay(500);
}`

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

This is very strange indeed. This project is more than 3 years old and it is my first time hearing this issue. I'll do a little testing myself.

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

Turns out all my Arduinos are at my workplace, and its closed.

I purchased a cheap one online, but it will take a day or two to arrive.

In the meantime, if its convient to do so, can you take a look at your exixe12 module and tell me what it says at the location below? Thanks.

IMG_2796

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

Hi, the area shown on the boards I have is blank, If you need a picture, I can supply one later today.

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

that would be great, thanks.

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

eixie_12

This one I am building at the moment, not yet completed.

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

woah this is a very old revision of the circuit board. It looks like a prototype-stage design from 2017. I didn't know you're building one yourself, I thought you purchased one from my Tindie shop.

Anyway, because this PCB revision is a very early design, I might have changed a few things around since then. The current library and documentation is for the production-run boards. If the swtiched RGB channel is the only issue, then thats actually not too bad!

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

Yea I bought these off Tindie just during lockdown I've managed to get through a few projects :)
I have uploaded the hex from the repo and am using an Arduino, and all seems well except the RGB...

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

VID-20200602-WA0007_3

Is this normal behavior running 2_loop_digit_simple?

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

It seems to be running a bit fast. In the arduino code the digit should be changing every half second, it looks about twice as fast in this gif.

The tube also turns off and flicker for a bit in the middle, if it happens on its own I would start by checking the 3.3V power supply. The 3.3V pin on 5V Arduino can hardly provide enough current for one module, so you might want to try a more beefy power source and see if it improves. I mentioned this issue in the power consumption considerations sections of the user manual.

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

Hmm, I'm running 5v through a 3v3 LD33 separate regulator, max 1A. You can see it in the gif, on the right side.

The other example, crossfade, is giving weird results. I'm going to try another Arduino to drive the spi.

I changed the delay to 100mS from 500mS to see if it made any difference but the behavior is the same.

Tried with an Uno (versus a Nano before) and the results are the same on 2x of these boards.
Counting for a period, the looks like a reset on the STM as the SPI seems to start again in a random place, i.e. begins counting at 3 or 4.

Does reset on the eixie need to be asserted high via a pull-up at all times?

Do you think this is a result of the revision of boards I have? I have 10x more bare boards to populate but I will hold off pending your very much appreciated advice.

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

The reset pin on the module is pulled up internally, so you don't have to pull it up again, but it wouldn't hurt.

I would check to make sure the SPI output from the arduino is at the correct speed and configuration with a logic analyser or osciliscope. You can find the details here.

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

Ok, before I break out the saleae, I read the clock speed in the eixie config is set to 8MHz?

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

Anything between 1MHz and 24MHz should work, although i would try slower speeds first to be on the safe side.

from exixe.

NegativCut avatar NegativCut commented on August 13, 2024

Hi, so after connecting my Arduino and 3V3 grounds together the 2-digit counting and crossfading sketches are working just fine. I have tested the SPI clock up to 16Mhz and its working just fine.
Thanks for your help and feedback.

from exixe.

dekuNukem avatar dekuNukem commented on August 13, 2024

Yeah it's important that everything are at the same GND. Glad to hear it's working now.

from exixe.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.