General area when it fits no where else

Moderator: Mmiscool

User avatar
By Hooter
#61039 Folks I wish to output a series of 50 microsecond pulses from two GPIO outputs.
This is to emulate the Wiegand output from a card reader.
I have this working perfectly on a microcontroller but wish to do it on an ESP8266 in ESP Basic.
Where can I insert the time value in the PO command?
Any assistance is appreciated.
User avatar
By Electroguard
#61361 Hi, normaly the DELAY millis command would be used, but it's in milliseconds so not fast enough for your purposes, and the fact that nobody else has replied suggests that there's no way to do it.

However, looking at the problem sideways, perhaps it's possible to define a softserial or SPI clock to run fast enough, and define an interrupt on it that could count pulses to be used for triggering an appropriate mark/space PO pulse train on another pin.
User avatar
By Mmiscool
#61366 I have found a Wiegand library for arduino. It might be possible to just ad it in to the interperter by wrapping the functions. Last time i use an hid chip reader was with an arduino and used serial to connect it to the esp. The hid reader i was using had 12v power requirments and i did not know if the pins could be connected to an esp with out toasting it.