hi, i know very little about arduino so can i get some help please.
i need to input to the digispark 2 analog voltages a and b.
a is representing the current used by my house. b is the current exported to the grid from my solar inverter.
if b is greater than a, then the difference must be output as 0%-100% pwm. this will go to a dump load to use the excess power.
the result should provide a dynamic load that diverts excess energy and keeps my export to zero.
it seems a simple function to me, but is this within the capabilities of a digispark? it has 2 analog inputs and a pwm output, and speed is not an issue as long as it can sample faster than once per second.
is there any BASIC compliler i can use? my programming experience was zx spectrum 1982!