Digital Electronics for Scientists