Giter Club home page Giter Club logo

Comments (6)

chrissbarr avatar chrissbarr commented on September 14, 2024

Hi @MagoKimbra,

You're right again! Yes, PD14 and PD15 are misnamed, they should be PD12 and PD13.

I've updated the schematic and images to show this correctly now.

All pins can be used as interrupts, but I believe only one of each pin number (i.e. can't use both PA0 and PB0 as interrupt - only PA0 or PB0 or PC0 etc...). So there are 16 pin-change interrupts available (Px0 to Px15). I included a table in the schematic showing one way the pins can be used without conflicting:

image

So, if you want to use interrupts for X-MIN and X-MAX (PB12 and PB13) then there are no interrupts available for PD12 and PD13. To use interrupts on PD12 and PD13, there can be no interrupts on any other Px12 and Px13 pins.

from rumba32.

MagoKimbra avatar MagoKimbra commented on September 14, 2024

Hi, please check carefully, because yesterday I tried pin by pin and the correspondence is not that.
What I found was this:
exp3

from rumba32.

chrissbarr avatar chrissbarr commented on September 14, 2024

Hi @MagoKimbra,

It's easy to get mixed up here, so I'll put together all the info I have and we'll see if we can get this figured out.

Here's an image showing the pins in the schematic and on the PCB:

EXP3-pins

Also included is the pin definition in the Arduino_Core_STM32 variant.h file, which sets the Arduino pin numbers for the STM32 pins.

The numbers in your image - are they the Arduino pin numbers? The Arduino pin numbers should be:

PD12 (previously PD14 as in your image) - 60
PD13 (previously PD15 as in your image) - 61
PWM_1 (PD14) - 62
PWM_2 (PD15) - 63

The first three are the same as in your image, but PWM_2 is different. Are you sure that PWM_2 corresponds to 59? I can't find this in my checking, but I am prepared to be wrong.

from rumba32.

MagoKimbra avatar MagoKimbra commented on September 14, 2024

Yes, I was wrong on 59, I tried only 60, 61 and 62 so I had one pin left and I wrote 59, in fact it's 63, perfect now everything exp3 matches me.

The bltouch also works perfectly on both the 62 and the 63, now I have to solve the DHT sensor reading. This needs a pin with interrupt attack, so I asked you the question.
In theory PD14 is on INT14 which is not used right, so if I use pin 62 (PD14) the interrupt should work.

from rumba32.

MagoKimbra avatar MagoKimbra commented on September 14, 2024

https://www.facebook.com/MK4duo/videos/857002628047547/
But you must write to group for see the video...

from rumba32.

chrissbarr avatar chrissbarr commented on September 14, 2024

I'm going to close this issue out now, but for future reference the pinout of the EXP3 header is:

image

I've added a pinout image to the main readme.

from rumba32.

Related Issues (20)

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.