coin acceptor help

I already discovered this problem. this problem has to do with the attachInterrupt function

how do we do it
the interrupt function ?

I've used a 10k pull up resistor connected to the coin acceptor signal pin at 5 more volts.

Please explain what you mean by this. A circuit diagram showing how you have wired things would be helpful. A photograph of a hand drawn diagram would be good enough

I send the schema attached.

I think I have something bad in the code

What voltage does the coin acceptor output when a coin is inserted ?

I don't know.

I was using an interrupt function like this in the code on the arduino nano and it was working fine, except that in wemos I cannot define the interruption so we will atrophy.

I don't know how I have to define the function of the interrupt

except that in wemos I cannot define the interruption so we will atrophy.

What do you mean by this ?

I think it has to do with the attachInterrupt interruption function (D2, coinISR, RISING) that we have atrophy. without this function it does not give that error on the serial monitor, there must be something wrong with the function

What error do you get when you use attachInterrupt() on the Wemos ?

upload the code to wemos, but then this error appears when viewing in the arduino program via the serial monitor

the error is as follows:

3fffff60: 3ffee598 3fffdad0 3ffee53c 40203c52
3fffff70: 3fffdad0 3ffee48c 3ffee4c4 402010a6
3fffff80: 0001c200 0000001c 00000000 feefeffe
3fffff90: 3fffdad0 00000000 3ffee4c4 40201114
3fffffa0: feefeffe feefeffe 3ffee4fc 402037b0
<<<stack<<<

rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld

Sorry, that means nothing to me

I already solved this error problem,
I had chosen the generic esp8266 card manager, switched to wemos d1 mini and took the code #define D2 19 and it worked.

now I'm not able to do it is to send my pulses to thingspeak,
I put the api keys code I have on the channel on the code I have on the channel on the code in apikey. it says that the information was sent on the serial monitor, but nothing appears on the graph.

One subject that I definitely don't know anything about is ThingSpeak

thanks ,ok, it's always sending 0 pulses to thingspeak, maybe I have something wrong with the pulse variable.

see if I have the code to send the pulses that count

I have a problem using the arduino nano.

when the coin acceptor for example does not accept the coin and the coin falls out it takes time anyway when it shouldn't be

I have connected a pull up resistor from the coin acceptor signal wire to another 5 volts.

sometimes the coin acceptor does not accept the coin and drops out.

when that happens it adds time when you shouldn't add anything.

I don't know what it could be