Peter Balch's instructables
Tell us about yourself!
Achievements
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
- Peter Balch commented on Basement Engineering's instructable DIY Laser People Counter
View Instructable »> Would you mind if I cite you and add some of your points to my weakpoints list?Sure. Please do.Sorry if I sounded a bit negative but we wasted a lot of time always thinking that the system just needed a couple more tweaks.At the end of each day, after a hundred people had come and gone an empty toilet would be shown as containing three people and therefore "full".So we added extra tests like "if there's been no activity in 10 mins then clear the counter" (which revealed that workers were hiding in the toilet to play on their phones for half an hour) or having an extra PIR sensor in the toilet so the counter never showed zero if there was someone in there.There are better LIDAR sensors but they're much more expensive - $500 vs $5.> I also planned on releasing th…
see more » - Peter Balch commented on Basement Engineering's instructable DIY Laser People Counter
View Instructable »Unfortunately, it's an unreliable way of people-counting. Been there - done that.Firstly, the sensor doesn't like certain clothes and hair styles. A fur-coat, a black fleece, short black hair all confuse it. There was one guy in our office with short black hair and a black T-shirt: it would see him 50% of the time.Secondly, that arrangement of zones often fails. Let's take a typical case: the door is a swing door off a corridor into a toilet. The person walks along the corridor and into the toilet. You want to stop overcrowding in the toilet.As they approach the door they're bringing their hand up to push the door open. It's a matter of chance whether the sensor sees the hand first in the "inner" zone or sees the person first in the "outer" zone. As they leave the door…
see more » - Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
View Instructable »Are these errors all to do with using fonts?The error "invalid conversion from 'const byte*' to 'word' in 'DrawInt(f[i], MediumFont, TFT_WHITE);'" might be to do with the 'MediumFont' parameter.I've implemented Fonts in a weird way that could be unique to Arduinos.So as to save RAM space, constant arrays (such as fonts) can be held in ROM. They are declared as e.g.const byte MediumFont[] PROGMEM = { 15, // ymax 4, // descender ...note the PROGMEM construct. You can google for how PROGMEM is implemented and what it means.You have to use special code "pgm_read_byte_near" to access data stored in a PROGMEM array. For instance... void DrawInt(int i, word Font, uint16_t color)calls void DrawChar(uint8_t c, word Font, uint16_t color)which uses the construction (e.g.) b…
see more » - Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
View Instructable »> Did you use electrode gel for your project?Yes - a mixture of gloopy shampoo and salt. No electrode gel was definitely more noisy.> A right-leg drive would improve the noise. Maybe. I don't know. I can see that giving the right and left electrodes a reference voltage that they swing about would be good. It means that common mode noise is reduced and that neither electrode is clipped by 0V or 5V. Why an active "drive" is good, I don't know. I haven't seen an explanation. I think that, for noise from the leads acting an antennae, the impedance of the electrodes will matter. Maybe that's why there's always a resistor in the right-leg drive. Or maybe the resistor is for safety. It would be interesting to compare with and without the resistor.Peter
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino

Sounds like a good idea. How about building one and making an Instructable?An ESP8266 could probably also write to an SD card.
View Instructable »Thanks.I looked at your ECG and I don't understand why it's so noisy. There's nothing special about the AD8232 circuit I used but the results were immediately better (which surprised me). The mains hum filter wasn't strictly neccessary.Could it be your 0V "grounding" of the right ankle electrode? The circuits I was looking at online have an active "right leg drive circuit". I think I understand what the right leg drive does; particularly when there's a single supply voltage. Some of you schematics show positive and negative supplies which (I think) means you can use a simple connection to 0V with the right ankle electrode (maybe with a resistor for some sort of impedance matching?). But your other schematics show a single positive supply. I don't see how you can connec…
see more » - Peter Balch commented on Peter Balch's instructable ECG Display With Arduino

An SD card will be tricky but might be possible. I'm going away for a few days so don't have time to reply now. There are discussions below about SD cards. (I think they're here) Did you enable the "fake pulse" in the sketch?
View Instructable »Thanks. I'm going away for a few days and will fix it when I get back.I'm glad it worked well for you.
- Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
View Instructable »I'm sorry I've taken so long to reply. The message never came through to my emails. Instructables usually forwards all messages but not this time.Did you solve the problem?I think you're saying there's a problem with the software - that the calibrateZero constant doesn't work.And you have a problem with the hardware that the voltage it reports is unstable - right?Peter
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
View Instructable »Once again, sorry I didn't reply to your previous email - it didn't come through to my email. It's odd, other messages do arrive from Instructables.How did you fix the problem? Was it just switching from Mac to Windows? I'm using IDE Ver 1.8.9 because I use an old XP PC at my electronics workbench.
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »I've uploaded the Delphi4 source to the Github repository.I believe Delphi4 is available for (unofficial?) download on the web.Let me know whether you manage to compile it.All the best, Peter
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »I'm happy to give the source away. However, the program was hacked around a lot as I tried various methods of analysis so it's not neccessarily easy to follow. Plus it's written in Delphi4. If you're a C programmer then it might be hard to translate.If you want to run it on a Raspi then you could try Lazarus. That's a work-alike freeware version of Delphi4. I've used it - it's a nice system. I doubt if it would be plug-and-play for the form design files (*.DFM - I've not tried it). But the Pascal will be identical.If it were me, I'd just start from scratch in your favourite language. It's not a difficult algorithm.Peter
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino

If all you want to do is store the data then it should be possible to use their example as it stands. But if you want to display it as well, that will be more tricky.I haven't looked at their code in detail to see how they're getting that data rate. It looks like they're collecting the ADC sample in an interrupt then putting the sample in a 512 byte buffer.Presumably it's double buffered so they can write one buffer (a slow operation) while saving new data to the other.How would you also display the data? I wouldn't try to display it in the interrupt handler - interrupt handlers are meant to be quick. So the main loop would need to read the latest data in the current buffer and display it.
View Instructable »I've got a couple of ESP32s (one with a camera) but I haven't even turned them on yet. I should do it.Why not have a go at a Bluetooth ECG and publish an instructable yourself? To me the question is: what's the advantage? I don't understand what data-logging or transmission to a phone is for. Are people hoping to look back at the heart attack they had yesterday? Would you wear electrodes 24/7?
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino

Sorry for the delay - Instructables only forwarded the message to me today.I suspect the problem is something to do with Arduino IDE versions.Try replacing the call to testADCfast with a call to testADCsimple: testADCsimple();// testADCfast();And remore the testADCfast function declaration.Please let me know if it works.
Thanks. You're right on both counts. 200 samples at 5mS per sample is one second = 60 bpm.I've also taken out the testADCfast() function which seems to give a problem with some versions of the IDE.I've uploaded a new version of the sketch.
View Instructable »What will you do with the bluetooth? Will you keep the display? Adding an HC-05 or HC-06 is easy. It's what you do with the data on a phone or PC that's somewhat harder.I've never written an Android app. I tried writing for the iPhone and hated it.
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino

Thanks. That's reassuring. I was convinced I would be told how everything I said about the heart is wrong. Mostly that hasn't happened but there is lively debate about how safe is "safe".
View Instructable »I measured the maximum current from an old AVO Multiminor as 9mA and from an AVO MkIII as 8mA so I suppose they're in the death zone. A modern digital meter gave under 1mA. I also measured the resistance between two ECG electrodes. It was around 150k so a 6V battery connected directly to them would give 40uA. On the other hand, I guess if you have nipple piercings and decided to use some croc clips ...
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »If you want to send stuff to my personal email, just search for "peterbalch" online.
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano

Which of Weka's machine learning algorithms are you using?
View Instructable »I don't know why the means and SDs don't match the data they're calculated from. I think that the train2raw.txt file contains raw data and the means and SDs have not been calculated - so they're just nonsense. (Except they're not complete nonsense!)In the train2.txt file, which is the processed data, the means and SDs are correct. (The SD is multiplied by 100 to make it easier for the Arduino.)
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino

> Why is this significantly more dangerous than, say, touching with our hands the parts of a 5VDC circuit powered via USB, something that I assume most of us have done? I would agree with you that it's perfectly safe to do it - except that "medical" equipment is meant to be much, much safer. I think Health and Safety rules are a load of nonsense - but apparently I'm not supposed to say that out loud.Step 2 is telling you what the rules are, not whether you _have_ to follow them.I've touched 240V AC mains enough times to know that it hurts but I survive. As a teenager I used to build valve circuits; 350V DC _really_ hurts. I'm scared of capacitors in TVs and always work on mains circuits with one hand in my pocket (you want the current to flow down to your feet not to your oth…
see more »View Instructable »What code? Where? What plotter? Is it connected to a PC? What commands does the plotter expect?
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
View Instructable »Have you tried the 2.2" display with any other software? Perhaps just try the s/w from one of my other projects. Is the line always there?It looks to me like a fault in the display. It looks like one of the drivers for just one of the display lines is bad.Maybe a faulty connection between the ILI9341 chip and the glass of the display.
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »I'll be happy to andswer any questions.I think of this instructable as an experimental project. Something for _you_ to try out different ideas.How are you at programming and maths? How would you like to be able to proceed? I was wondering whether converting the filter outputs (on the Arduino) into spreadsheet input (on a PC) would be useful.
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
View Instructable »That's a nice clean ECG trace - very little noise.> why the green horizontal line on the 2.2" display?It sounds to me like the display was working but the AD8232 wasn't. Or maybe it wasn't connected properly.That was with a Pro Mini - right? Maybe the AD8232 was connected to the wrong ADC pin. Does the 2.2" display work with your latest circuit?> why does it need resistance on the pads? like how the gel is doing.You should get something even if there's no pad - mostly noise. You shouldn't get just a green horizontal line.You get more noise if the connection to your body has a high resistance. Higher resistance makes the lead act more like an aerial. A pad and gel (or even just salty water) lowers the resistance. Try using a copper coin as a pad.> pls improve this projec…
see more » - Peter Balch commented on Peter Balch's instructable Transistor Curve Tracer
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »I didn't know that. I used an IBM 360/44 with 128 KB in the early 70s but it never occurred to me to wonder how many MIPS it did. I was happy if I got my punched cards back the same day. I just copied the 15MIPS figure from Wikipedia or somewhere.I don't think any of the workers attempted real time speech recognition. The few papers that discussed the speed of their systems said things like 30 seconds of processing per 1 second of speech.One group connected a telephone handset to a Honeywell DDP-516 to record speech to disk but then managed 22 times slower than real time for analysis. Other groups had special hardware on the input - analogue vocoders and the like. I can't find the IBM360 group's paper or remember what they did.In the 70s I was using the IBM 360 to analyse neurophysiology …
see more » - Peter Balch commented on Peter Balch's instructable MIDI Drum Machine
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
View Instructable »Thanks. But, oh dear. Whenever I get more "followers" on instructables, I feel this pressure to publish more stuff. I'm running out of ideas. What would _you_ like?
- Peter Balch commented on Peter Balch's instructable ECG Display With Arduino
View Instructable »Thanks. I say: just build it. The circuit in Step 2 took about 30 minutes from receiving the module to getting a really nice display on a PC. I was amazed at the quality for so little effort.
- Peter Balch commented on Peter Balch's instructable Transistor Curve Tracer
View Instructable »It certainly sounds like there's something horribly wrong with the display. When you get the new one, can you power it from a current-limited supply? Or maybe just put a 100R resistor in the power line. The 662K can only take 6V max input. Is it possible it got connected to the 12V line?It's always annoying when one destroys a module or chip and you've got to wait ages for another one to be delivered. Please let me know how it works out.
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano

Wow - I'd forgotten about SpeechLab. I _really_ wanted one of those but couldn't afford it. I got a motorbike instead.
I write a lot of software for speech research - trying to spot what's going on in a spectrum. But speech is different from spectral analysis for material recognition. In speech the spectra move so you're looking at the relative rather than absolute positions of peaks. I did work for a while in radio-spectrum analysis for counter espionage - the peaks stay still but appear and disappear. I guess that's closer to what you were working on.
View Instructable »Perhaps. I find castellano much more difficult to understand than the espanol of Latin America. We were in Colombia just before lockdown - that really _is_ different.
- Peter Balch commented on Peter Balch's instructable Transistor Curve Tracer
View Instructable »> IL9341 display 3v3 or 5V?A good question. The IL9341 chip is 3V3 (actually 2.8 to 3.3V).I've bought a few of the display modules and every one of them has a built-in 3V3 regulator. If you look on the back of the PCB, you'll see it connected to the VCC pin. It's a 662K chip on the ones I have - max 6V input, 200mA. So it can be powered by 5V and you can connect it directly to your 5V Arduino pin. The LED power pin can also be connected directly to the 5V pin. At least, I think that's the case. Other people do that and I've been doing that and nothing's gone wrong. In my schematic for the Curve Tracer, I see I've used an external 3.3V regulator. It was the first time I'd used the IL9341 module and I wasn't sure whether I could power it from 5V. You'll see in my subsequent projects, I j…
see more » - Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »I personally wouldn't call it machine learning. Yes, it doesn't use a neural network but then you can do machine learning without a neural network - you can learn using a genetic algorithm or even steepest descent. I didn't want to use any of those because they take enormous numbers of samples and I didn't want to spend that long making recordings. I think the techniques that are in vogue today are in vogue because they work better. What I did was the crude sort of thing people did 45 years ago. People didn't think much of neural nets back then during the "AI Winter" because they believed that neural nets could only deal with linearly separable patterns; plus no one knew how to do back-propagation with multi-layer nets.My technique would perhaps be equivalent to a "single-…
see more » - Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »Turbo Pascal - yeah! I was a great fan. That's why I now write as much of my code as I can in Delphi. Writing C gives me a pain in the stomach.I suppose a 1D convolution network would work - you slide it over the incoming data streams and see whether the output exceeds a threshold - right? Actually I suppose it's eight 1D CNNs in parallel. I thought of doing it that way but was worried that I ought to scale the input first to normalise it and I couldn't see how to do that with a continuous sliding window. Also, I worried that the the extra continuous maths needed would be too much for the Arduino. So I opted for a "batch" process - trying to collect one whole utterance then analyse it at leisure. It was a fun project but, as you say, its performance is not great in the real worl…
see more » - Peter Balch commented on Peter Balch's instructable MIDI Drum Machine
View Instructable »With the rotary encoder that I used, the three pins together are for the rotary part. The centre one is 0V and the outer ones are for CW and CCW.The two pins on the other side are for the button-push. Connect them so that one is the button and the other is 0V.I've added an extra photo in stage 4 to show the connections. The rotary encoder you buy might be different.Please do let me know how you get on.
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »What sort of accuracy were you getting? The IEEE papers weren't reporting very good results for speech recognition (my Arduino system only works under ideal condition - it's pretty poor in the "real world".)I've attached the contents pages. If Instructables hasn't mangled them they should be good enough for OCR.
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »I have posted new versions of speechrecog2.ino and speechLearn.exe which improve the way the two programs communicate.They might also make it easier for you to try wring your own algorithms - see the new Step 11 "Writing your own Algorithm".The changes might take a while to actually appear on Instructables. If you downloaded the code before 17:00 GMT on 13 March 2021 then you should download the new versions.
- Peter Balch commented on Peter Balch's instructable Speech Recognition With an Arduino Nano
View Instructable »Thanks. I enjoy trying to write these kind of algorithms.The Windows program seems to have a couple of bugs and needs a bit of improvement. The digital-filter part is good but the recogniser part doesn't talk to the Arduino properly. I think I've fix it but it's late now so I'll double check it before I upload a new version in the morning.
- Peter Balch entered Speech Recognition With an Arduino Nano in the Microcontroller Contest contest
- Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
View Instructable »It looks good although I was a little surprised with the words on the box :)Apparently it means _Carp_ eggs with onion salad.
- Peter Balch commented on Peter Balch's instructable MIDI Drum Machine

I think it did. Try taking it out and see what happens. And try taking out the call to NoteOff() in the NoteOn() function.You could also try my DrumSynth0.exe program (in Step 1).
> Perhaps the nano just can't quite cope with the data rateThe sounds come entirely from the VS1053.The Nano either does or doesn't send a command - as far as the Nano's concerned either there is or isn't a note. There can be no partial notes.So I reckon it's a problem with the VS1053. If you send a second command to the same voice too soon then maybe the VS1053 gets confused.Commands to sound a note are sent in the NoteOn() function (around line 1089). You can see that I have commented "bug in the chip: sometimes needs percussion twice".A NoteOn command is byte 0x90+n where n is the channel number. (Section 8.9 of the VS1053 data sheet.) In my sketch, the first 47 voices are percussion and the remainder are melodic. In MIDI, percussion is always on channel 9 and the "no…
see more »View Instructable »I began to suspect that the timing of NoteOn command for the handclap was important. If the notes were far apart in time then they were OK but as they got closer they started going wrong.
- Peter Balch commented on Peter Balch's instructable MIDI Drum Machine
View Instructable »I think you're right about some of the voices not playing every time. Try putting two notes close together on the same track - does the second one always play? Then put the same two notes far apart. Or use the same instrument on two different tracks.I haven't yet worked out what's going on. It's beginning to look like it's a problem in the VS1053. Maybe if a note hasn't finished playing and you start it again it goes wrong. (I always send a Stop command before starting a new note on the same track.)If that's the case, there may be a software fix. The chip has 64 channels but the drum machine only has 8 tracks. Maybe each track could use several channels so successive notes of a track aren't on the same channel.The difficulty with that solution is that the percussion voices are all on chan…
see more » - Peter Balch commented on Peter Balch's instructable MIDI Drum Machine
View Instructable »Which display is it?It can be very frustrating getting a new display working. You've no idea where the problem is: my hardware, the display hardware, getting the SPI to work, a single value is wrong during initialisation.I have bought one of these displayshttps://www.ebay.co.uk/itm/3-5-inch-HDMI-Touch-Screen-LCD-Display-ABS-Case-Box-for-Raspberry-Pi-3B-3B-2B/303669593302?hash=item46b41e44d6:g:vLYAAOSwq9ZfS5SSwhich is meant to work with an Arduino but I haven't tried it yet.There are discussions here:https://forum.arduino.cc/index.php?topic=406097.0https://forum.arduino.cc/index.php?topic=566785.0I would try to get your display to work with _any_ library just to prove that the display hardware and your connections are all good. So I'd download half a dozen libraries and try them all.Adafru…
see more » - Peter Balch commented on Peter Balch's instructable MIDI Sonar "Theremin"
View Instructable »KevinI still haven't got around to checking the status register as you suggest - I've had some Actual Paid Work to finish.However, I have noticed that sometimes if a command is sent to play the same note repeatedly, sometimes it isn't played properly. For instance, a "Hand Clap" played every 1/4 sec doesn't always play or sometimes only half plays.I've tried sending a command to stop the previous note before starting a new one. That improves it but it's still not 100% good.Have you noticed the problem? Is there a solution?Peter
- Peter Balch's instructable MIDI Drum Machine's weekly stats:
- Peter Balch commented on Peter Balch's instructable MIDI Sonar "Theremin"
View Instructable »Interesting. Both the boards I've used were sold as "VS1053". The "theremin" board is soldered in place and the chip is not visible. I just checked the Drum Machine boards and the chip is labelled "VS1053B". Neither of my boards required any special code or hardware changes to enable MIDI.I guess I was lucky.
- Peter Balch commented on Peter Balch's instructable MIDI Drum Machine

I haven't tried it with an external MIDI input so I don't know about the lag. There don't seem to be any complaints on the web. I didn't notice a lag when using drumpads.The sound quality is good to my ears with a decent analogue powered amp.The VS1053 uses a DAC but I can't work out from the datasheet what the sample rate is when generating MIDI. The DAC is capable of 6.144 Msps when playing MP3.There's some suggestion you should low-pass filter the DAC output. For an audio amp I wouldn't expect that to be a problem but the PAM8403 is a D-class amp and so uses pwm (at 260kHz).It's possible that the frequency of the PAM8403 interferes with the frequency of the VS1053 DAC. There's a disussion herehttp://www.vsdsp-forum.com/phpbb/viewtopic.php?t=2017They suggest an RC filter might help.
View Instructable »With drum pads or without? Mine's without - I just built some to test it.Please do post an "I Made It" if you do!
- Peter Balch commented on Peter Balch's instructable Transistor Curve Tracer
View Instructable »Maybe.I don't think that Rbe is a useful concept. The base voltage/current curve is so non-linear you can't treat it as a resistor. As I said, you're better considering Vbe so your equation should be I = (Vdac-Vbe)/27k. Vbe depends on Ibe and also on Ice. It's traditional simply to assume that Vbe is 0.7V for silicon transistors (0.3V for germanium) and design your circuit around that.You can measure the base current if you want but why do it? I think it's a mistake to base your circuit design on the exact shape of the Vbe curve - it varies too much between different transistors or with temperature changes or ageing. Design your circuit with plenty of negative feedback to compensate for differences between components or changes over time.My curve tracer shows the approximate shape of the …
see more » - Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
View Instructable »That's an ideal use for it - as a "signal monitor" rather than as an "oscilloscope". Maybe you could have several showing different stages of the mixing or left/right channel.Have you thought about using an analogue input to the Arduino to control the AD9833 frequency? Rather than using an analogue VCO, you could do it digitally in the AD9833. Maybe there are things you can do digitally that are more difficult with analogue. If you google "ad9833" and "vco" or "synthesizer" you get a few hits of people using the ad9833 in synthesisers
- Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
View Instructable »Nice idea. Is the component tester a LCR-T4 ? The LCR-T4 is great isn't it.You could also add a Saleae logic analyser (or one of its clones but it would be embarrasing to use a clone as they've put so much effort into the Saleae design). And you could add my Transistor Curve Tracer.I've seen other people's workbenches that have a few spare pushbuttons and LEDs for use in circuits you're breadboarding.A voltmeter?
- Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
View Instructable »What sort of problems? Is there an error message?Have you got an ATMega 168 rather than a 328?
- Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
View Instructable »You're right, I did nean to say "LM358". I don't think I own an LM258. (I've now changed the text.)This datasheet compares the LM158/LM258/LM358.http://web.mit.edu/6.115/www/document/lm158.pdfThe LM358 is the commercial device and the LM258 is the "industrial" device. It is normally tested to closer tolerances and operates over a bigger temperature range. The LM158 is the military/aerospace part. So, yes, you can use an LM258.Peter
- Peter Balch commented on Peter Balch's instructable Transistor Curve Tracer
View Instructable »The ExecSetupMenu function executes one of the setup menus (for Bipolar or FET) then waits for either the OK button to be pressed or for a device to be inserted. (It also deals with pressing the up/down buttons)It returns false if the OK button is pressed and returns true if a device is inserted.The "if (millis() - time > 1000)" block tests whether a device has been inserted. It does so once every second.I guess you don't have a millis() function in your 18f4620 software. Of course, it doesn't really matter that the test is done exactly once a second. I think I put the timer in there so that the test wasn't done every time round the loop - it slows down the response time of pressing the buttons so should only be done occasionally. Perhaps you could do the TestDeviceKind() te…
see more » - Peter Balch commented on Peter Balch's instructable Oscilloscope in a Matchbox - Arduino
View Instructable »So no pressure then? I'm getting embarrassed that I haven't published anything for 8 months. I've got a couple of projects in the works but I'm waiting for stuff from China. Soon - honest.
- Show More Activities























It's reassuring that mine works the same as a commercial device. Even the vertical scale matches.I wonder what the double bounce on the rightmost S wave of the "commercial" trace means.What other display modes does the commercial device have? I was just trying to be fancy with my display modes. More ideas would be good.Peter