hi everyone i have an Arduino Uno VR3 with a multifunction shield I wanna use them to activate an encoder but pins 2 and 3 of interruption are already used what can I do
can anyone help me
Which multifunction shield? There are several. What do you mean, pin 2 and 3 are "already used"? Used by you for some external hardware? Or made inaccessible by the shield when it is placed on the Uno?
[file:///C:/Users/makhl/Downloads/Hackatronics-Arduino-Multi-function-Shield.pdf]
this multifuction shield
pin 2 is connected to IR reciver and pin 3 connected to the buzzer of the multifunction
Here is a schematic: https://taillieu.info/index.php/articles/category-blog/424-arduino-r3-multifunctional-expansion-board-shield
Do you really need that shield ? A prototype board might be a good option.
Scratching copper traces, adding wires to move the buzzer and IR-receiver to other pins. Soldering wires to the encoder. It does not sound good.
I thought there were encoder libraries that work with pin change interrupts which can use pins other than 2,3. Maybe I'm wrong.
Are you actually using the IR receiver? If not, you have at least one pin.
unfortunately with Arduino Uno, we can use just pin 2 and 3 to interrupts
no, I don't need either the IR Reciever or the buzzer .
I can send you a photo to understand me better
yes i need to work with this shield
can i use any other digital pins !!
There are interrupt pin options available to you, details here:
https://www.pjrc.com/teensy/td_libs_Encoder.html
There is a mode described there, using one interrupt and one non-interrupt pin, so you could use pin 3 and some other pin:
Good Performance: First signal connects to an interrupt pin, second to a non-interrupt pin.
yes, the problem is pin 3 is connected to the buzzer to use it I need to cut it of and i don't know how !
is this multifunction have interrupt pins other than those of the uno !
Then use pin 2 and some other pin. Unless you have actually installed an IR RX module, pin 2 is not connected to anything, just a socket.
then i just have to weld pin 2 with the wire !
You can stick a Dupont pin into the IR receiver socket. There is no need to solder.
okay i will try it thank you very much
in the code i'll use just one attatchinterpution fucntion !
I have that shield, I wrote an API specifically for it. The designers got some things right, but tying up the interrupt pins was not one of them. Another blunder was not exposing the I2C pins normally. You can use 1 male and 1 female Dupont to access them but it's awkward.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.



