Thank you for the hc-sr04 block for simulink. Why do you have pin 40 and pin 34 inside the sonar block?
@siemenssimulink10 жыл бұрын
hola Felix :) pues he usado pin 40 y 34 para alimentar hc-sr04 - por eso se puede controlar si quieres encenderlo o apagarlo, los numeros de pines eran arbirarios y si alimentas su sonar en otro modo puedes quitar lo
@bob382469 жыл бұрын
hi there could you show the s function for HC- SR04? i took a look at your tutorial for integrating Sfunction but still doesn't work for HC-SR04
@siemenssimulink10 жыл бұрын
@Carlos Eduardo Agudelo yes, according to Matlab website it should works with Arduino Mega 2560, Uno, and Nano 3.0 and Due. I've prepared tutorial how to make your own S-function blocks for Arduino: How to integrate Arduino Libraries with Matlab Simulink? . and that #Define Arduino 100 - this is preprocessor directive that means you're using new Arduino IDE (literally Arduino.h instead of old WProgram.h, etc.)
@OsamahAlQaisi10 жыл бұрын
can I know the program u used to create the video pls ?
@siemenssimulink10 жыл бұрын
hi :) it was Movie Studio Platinum 12.0 (64-bit)
@mustafaamine72957 жыл бұрын
hi ,thank you very much for this very good work could please make a video how can we run the sfunction i get menay errors in simulik
@marwensallem769410 жыл бұрын
Hello, I have a question about your great work, How did you made the .h files (newping.h,...), is it an arduino file or a C file ? Can you give me some tutorial how we makes this ?
@siemenssimulink10 жыл бұрын
hi:) check this movie: How to integrate Arduino Libraries with Matlab Simulink? these are C libraries
@marwensallem769410 жыл бұрын
siemens simulink Thank you very much :)
@carlosagudelov10 жыл бұрын
Hi,first of all, great work. I have a lot of question. Does it works on Arduino UNO?, because i'm trying to do it, but it doesn't work. Could you help me with that? I know how works a S-Function, but now i don't know what to do. What exactly does #Define Arduino 100, included in S-Function on the library pane?.