Arduino-controlled HP memristor emulator for memristor circuit applications