S
S
stiger192015-08-17 16:47:53
Atmel AVR
stiger19, 2015-08-17 16:47:53

Why is the HC-SR04 ultrasonic distance sensor not friendly with ATTiny13?

I made a device in which it is necessary to process data from a distance sensor HC-SR04. I did it on ATmega16, but in the process of work it became clear that a separate microcontroller was needed for the sensor so that the main program in the atmega would not be interrupted for the duration of the request.
The essence of working with the sensor is to give a signal to one leg, wait for a high level on the other, and calculate its duration. I tried both interrupts and programmatically, it works well on atmegas, but not on Attiny13.
Maybe I'm missing something due to lack of experience. Maybe try on Attiny2313?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sasha, 2015-08-18
@massol

It seems to me that you are just slipping the meg firmware not recompiled for teens.

K
ks0, 2015-08-17
@ks0

You may be missing the clock frequency. Because there is no difference.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question