hey guys, Im working on a project where I need two arduinos. I want one to be connected to my pc where I can send a float via bluetooth to the other which will be powered by a external source. The reciving Arduino should then make a signal with the frequancy based on the float sent. That is it. The signal can simply be a square wave. It would also be a advantage if the frequancy can go to the kilo hz roam.
I have already used a mkr wifi 1010 which worked ok, until I fried one of them (I think, see Mkr 1010 suddenly stop responding) so now I need to order new ones (i dont mind the cost). I though I might ask you if you have any other suggestions than the mkr wifi 1010
considering your needs, any model I know will do the job.
even the UNO (and nano for a similar capacity) will fit.
if you are not limited by the budget, you should take a look to others way to communicate like wifi or BLE, with the 33IOT, the 33BLE or a model of ESP32.
emh, just making a output pin turn on and of with a given frequency. I already established it for low frequencies simply by using a delay function. so, digitalwirte(pin,High)->delay(500)->digitalwrite(pin,Low)->delay(500). So that is all i need, but when i measured the actually frequency i saw the output was a bit of. In my case some better code will probably fix it, but since Im buying a new arduino anyway i though i might buy the best one for doing something similar to that
I think BLE is best. The arduino's is placed within a isolated bunker with no wifi and the distance between them is not to far. As long as there is signal between them so that i can send a float number when I want (within a respons time of some seconds) its fine.
because i need wireless comunication where i need some code in both ends, And using two arduinos is a quick and easy way to do that. If you have some other suggestions that would be nice My demand is that i need to be able to type a number to in my computer which wirelessly changes something that makes the voltage in a circuit oscillate with a frequency according to my number
I have not tried tone, so i will do that the frequency needs to be sett to all number between 0 hz and say 5k hz ish. The most important part is the smaller frequencies though
lower frequency (as in a lower number ), yes tone has a lower bound of 31 hz, but my super simple code using delay works fine for frequencies under 100. so i can just make a simple if statement, only using tone for higher frequencies
my love goes to the 33 BLE. I LOVE this board, and I find it very easy to code. And by code I mean direct access register. Sounds hard at the first attempt but the board is really designed for that (my opinion).
A quick read to the datasheet and you should be able to set up a weird number of different timers with a lot of option, and of course, to export the signal on quite any GPIO pin.
with it, I drive my servos without library (setup my own "20ms phase" timer with adjustable trigger, such a pleasure) AND an ultrasonic sensor, everything as a state machine, without any blocking function (you should guess I am very proud of it )
Just including the arduino BLE library (not crazy enough to try to substitute it!) and it perfectly match my need to drive my remote controlled car.
Not sure I understand. If the only reason for arduino #1 is to send BLE/Bluetooth data to arduino #2, and it's also connected to the PC, then why not send the BLE data directly from PC to arduino #2?
It blocks radiation well, but those are "hard" particles. I don't think it absorbs or reflects too much radio emission, partially because of its low conductivity.
Edit: but a wall of anything can be a problem too.